Forums › Forums › Search & Filter Pro › Creating 100+ results pages?
- This topic has 22 replies, 2 voices, and was last updated 5 years, 10 months ago by
Trevor.
-
Trevor(Private) January 10, 2020 at 10:06 am #230598
To the last question (in the second post) first. I am sorry, but it is not possible to add a condition to an existing form (for example by adding a variable to the shortcode).
There might be a solution to your needs, but I need to better understand what you have in mind.
You say that you need to automatically create pages. The way WordPress would normally do this is in a taxonomy archive page for a post type.
Let us say you had a custom post type called cars. Let us say it has a taxonomy called color. The red cars archive page might be (depending how you set up the Permalinks):
mycarsite.com/cars/color/red/or
mycarsite.com/color/red/or
mycarsite.com/red/As long as you are searching just ONE custom post type (cars), and that the custom taxonomy (color) is attached ONLY to that custom post type.
Then this can be accommodated in our plugin by setting the the display results method to
Post Type Archive(and in general settings select that post type).And also enable:
Enable filtering on Taxonomy Archivesand
Choose which kinds of pages S&F will try to do this on->Tag, Category & Taxonomy ArchivesFinally, the Custom Taxonomy (color) must be in the form. If you don’t want it to show to the user, use some custom CSS to stop it from displaying.
Trevor(Private) January 10, 2020 at 10:45 am #230610Rather than redirects, you would probably be better to use WordPress rewrites. However, your problem is that the data terms are stored as Post Meta, and WordPress does not have a mechanism for creating pages based on post meta terms. Which is why I said it needed to be a custom taxonomy.
Otherwise, you would be forced to make 100+ pages or posts.
This is not a restriction of our plugin, but the way WordPress works.
-
AuthorPosts