Forums Forums Search & Filter Pro Creating 100+ results pages?

Tagged: ,

Viewing 10 posts - 1 through 10 (of 23 total)
  • Anonymous
    #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!

    Anonymous
    #230579

    I’ve been thinking about this; would it be possible to make 1 searchform and use the results shortcode on all these pages, but with loading of a certain filter as it is selected by the user?

    Trevor
    #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 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.

    Anonymous
    #230600
    This reply has been marked as private.
    Trevor
    #230605
    This reply has been marked as private.
    Anonymous
    #230607
    This reply has been marked as private.
    Trevor
    #230610

    Rather 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.

    Anonymous
    #230614
    This reply has been marked as private.
    Trevor
    #230617

    You would need to set up a custom taxonomy for just that field, and transfer the data terms over to the taxonomy. That might have to be done manually, so I would do only a few to test it.

    Anonymous
    #230627
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 23 total)