Forums › Forums › Search & Filter Pro › I can't see results as an archive or post type
Tagged: Avada, display results
- This topic has 9 replies, 2 voices, and was last updated 8 years, 1 month ago by Trevor.
-
Anonymous(Private) November 4, 2016 at 9:30 pm #68788
Hi team,
I just have bought the plugin and i have been reading all the documentation.
First of all, I am using Avada 4.0.3
I have done all the steps explained here and I have modified search-filter.php with this: <?php if ( have_posts() ) : ?> , like said in the FAQ section. But still doesn’t work for me.I have read some questions and the replies on this forum but I don’t see nothing more to do…What do you need to help me?
Thank you in advance
Trevor(Private) November 5, 2016 at 9:29 am #68843Hi Alberto
I think that when they released Avada 4 they integrated the wp_query (the bits that gets the posts and applies the filters) deeper into their code and out of the search.php template, making the archive method impractical. Instead it will be necessary (at least other users have done this) to use our Shortcode method.
To test this, build a results page with the shortcode for the form (or use the widget) and the shortcode for the results and first see if this works.
I did make a couple of changes to your form, the most useful at this phase of development is to have the post count showing in the form tags element. That way you can see what to expect in the results. If the number you see there is wrong, then you have most likely made a setup mistake. The most common of these is in the Includes and Excludes of the Categories Tags and Taxonomies, so be very wary of using that tab until you know everything else is working, and then test carefully as you go.
The most important thing with the shortcode method is to make a local template copy of the results.php file. The layout and general content can be changed, so don’t worry about that for now.
Anonymous(Private) November 7, 2016 at 1:55 pm #69018Well. The shortcode method works properly, at least the results are shown, but I should change the template because i don’t like it.(and I don’t know if I will be able to do it…)
I downloaded the free version of the search&filter plugin and it works fine using the widget, with the correct template from avada. Do you know why?Trevor(Private) November 7, 2016 at 2:06 pm #69025The free Search & Filter is totally different to the paid version. I can provide you with a modified results.php, so no work required for you there. All I need is an example page of what it should look like (a page that does NOT use Isotope or masonry in the grid).
Trevor(Private) November 10, 2016 at 9:39 am #69561The overflow of the select box is due to the length of the options/terms. Some Custom CSS will fix this:
.searchandfilter select.sf-input-select {max-width: 225px;}
The Auto Submit is set in the form settings on the General Tab. You would uncheck this setting. I have done this for you already.
Yes, the results can be like that. At this time, your search is still ‘As an Archive’. You will need to change this to the Shortcode method in the Display Results settings tab, and also set a URL for the results. This can be a new page (which you would have to make and you would make it with the sidebar like the Guias page) or it can be the Guias page, in which case you must choose how you want the results to look (and the unfiltered page). Like the Guias page or like the tag results page you get when clicking one fo those 3 buttons.
-
AuthorPosts