Forums › Forums › Search & Filter Pro › roblem Using a shortcode
- This topic has 5 replies, 2 voices, and was last updated 8 years, 10 months ago by Ross.
-
Anonymous(Private) December 29, 2015 at 10:48 am #32966
Hello.
I have a problem, I have configured the pluging to display results as a shortcode and I have copied both shortcodes to the page, and the url of the page to the plugin options, like you say in the documentation.
But look what is happening: http://www.en-blanco.es/index.php/properties/
The posts are down the filter, and when I try to make a search anything happens.
I am using the plugin “Post Type Builder”, maybe is a problem between both?
Thank you very much.
Ross Moderator(Private) December 31, 2015 at 1:32 am #33088Yes there is some issue.
It looks like you setup the loop wrong.
What happens when you use the default S&F results template, and not a custom one?
Thanks
Anonymous(Private) December 31, 2015 at 1:48 am #33092If I use the normal post it works, but the posts are down the filter too:
http://www.en-blanco.es/index.php/post-search/
How can I resolve it?
Ross Moderator(Private) December 31, 2015 at 2:52 am #33098This is how to customise the results:
I don’t know how you are creating your loop in the results but it is not correct.
It is not using the query created – you should use the example
results.php
to figure out the correct usage.Ie, you should use
$query->have_posts()
instead of justhave_posts()
(I’m just guessing here.How are you creating your layout?
Just to let you know support is now closed until the 4th due to new year and as usual we are closed on the weekends.
Thanks
Ross Moderator(Private) January 4, 2016 at 5:27 pm #33270Hey Celia
The only way to customize S&F is to follow the instructions here if using the shortcode display method:
S&F does not automatically have support for all other plugins out there I’m afraid, and as I’ve never used that plugin its going to be hard for me to suggest what you need to do.
Just to confirm, is it this one https://themify.me/demo/themes/post-type-builder/ ?
There are two possible ways I can see of getting this to work:
1) Take a look at the code generated by Post Type Builder, and copy & paste that over in to a custom
results.php
(as described in the link I sent). This would require some coding knowledge, but not too advanced, and basically you would need to copy over the html structure into the template.2) If (and I really have no idea, but this would be ideal) your “post type builder” plugin saves templates as php files, then you might be able to get this to work directly with S&F by setting your display method to “archive” and entering the filename of this template.
Thanks
-
AuthorPosts