Forums Forums Search & Filter Pro Styling of results

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #133702

    Hello,

    I’m having a hard time getting my “results” cards to match the styling of all other cards / movies across my site. If you visit the page in question (http://staging.scarehunt.com/) – my filters are on the right, how I want the “results” to look shows in the body of the page, and how the results actually look is at the very bottom (much larger, leaving a ton of info off each card).

    Can you please advise?

    Thanks in advance!

    Trevor
    #133764

    From what I can see, your form is set up to use the Display Results method, and in the right sidebar you have the form. You have the ‘cards’ content at the top of the main content block, and under that you have placed the form’s results shortcode.

    The cards will be output by either a plugin or your theme, probably using a template PHP file, and the form results in this case will be using our (basic) exemplar results.php template file, as described here:

    https://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/

    What you want, if possible, is to link the form to the cards section, and not use our shortcode. That would probably require you to use the As an Archive Display Results method, or the Custom method. In the first instance, did you try the As an Archive, and if you did, what happened (not using the shortcode for results therefore)?

    Anonymous
    #133773

    When I try the “As an Archive” Display Results method, I get the following error (As soon as I select that option) :

    Error: The has_archive attribute is set to false for the post type Stories – this must be enabled in order to use the Post Type Archive in WP

    Trevor
    #133778

    Ah. OK, did you make that Stories Custom Post Type using Toolset Types? In which case, find the settings, there will be one that allows you to enable archives for the CPT:

    https://wp-types.com/documentation/user-guides/creating-wordpress-custom-post-archives/#customize-cpt-archives-without-coding

    Anonymous
    #133791

    The “Stories Custom Post Type” actually came with the theme, and I don’t see any reference to Toolset Types anywhere, so I’d imagine the author probably used another method. Is there another way to enable archives for the Stories post type, or make it work with the Custom method?

    Anonymous
    #133801

    I ended up getting it figured out – I actually had to add a snippet of code to the functions.php to enable the archiving for the stories, as opposed to just changing it from False to True. From there, I took your initial advice and used the As an Archive display results. Thank you very much!

Viewing 6 posts - 1 through 6 (of 6 total)