Forums › Forums › Search & Filter Pro › Creating 100+ results pages?
- This topic has 22 replies, 2 voices, and was last updated 4 years, 10 months ago by Trevor.
-
Anonymous(Private) January 9, 2020 at 7:15 pm #230549
Dear Support,
I’m currently working on a site where I would like to create (automatically) 100+ pages, where the only content (at the beginning) will be the result of a certain field.
For example the field ‘color’. I want to have pages with all of the colors (red, blue, black, yellow etc) and display the results on them. Later on I want to add unique content to it, but for now it’s just the results.
How can I create this? Is there for example a shortcode to use to display certain results?
Would love to hear from you!
Trevor(Private) January 10, 2020 at 10:06 am #230598To 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 Archives
and
Choose which kinds of pages S&F will try to do this on
->Tag, Category & Taxonomy Archives
Finally, 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