Forums › Forums › Search & Filter Pro › Sample Using Pod
- This topic has 7 replies, 2 voices, and was last updated 7 years ago by Trevor.
-
Anonymous(Private) November 4, 2017 at 3:16 am #140080
Hi, I am displaying the content on a Page using Pod Template and I am unable to get Search and Filter to work. Would like to ask if you have any example that can help me please?
This is what I am trying to achieve:
1. Created a Pod “myPod” with custom Taxonomy “Topic”.
2. Displayed content the the Pod using Pod Template.
[pods name=”myPod” orderby=”myPod_date DESC ” template=”MyPod Content” limit=”1″ pagination=”true”]3. Have Search Form to filter by “myPod_Date” and “Topic”
4. Search result seems to always show “No result”.
Appreciate any advice from you.
Thank you.Trevor(Private) November 6, 2017 at 10:37 am #140223Hi
On the Post Meta settings tab, you had an unfinished condition, so I have removed that. also, the form had no name, so I have given it one, and I have enabled Auto Count (generally a good thing to do).
I also disabled force is_search and is_archive, unless there is a reason you enabled these?
Has that improved it?
Trevor(Private) November 7, 2017 at 7:04 am #140405Hi Tony
It is possible that S&F Pro would would with a Pod Template and Content Views Pro.
I am thinking it might work with an undocumented feature of S&F Pro; the Filter Next Query shortcode, which looks like this:
[searchandfilter id="1876" action="filter_next_query"]
This has to appear, in page content order, before the WP Query that is executed to create your loop. It is used when the form is to to the Custom Display Results Method and the form is used on a real WP page (one you have made). On the page, let us say that you insert the content using a shortcode in the WordPress post/page editor, you would place the Filter Next Query shortcode immediately before the content shortcode.
If you have a page builder of some sort, where the content loop is an element you add, just before that element, place a code or text element with the Filter Next Query shortcode in.
It does not always work, but is worth a try. Always test it first with Ajax off.
-
AuthorPosts