Forums Forums Search & Filter Pro roblem Using a shortcode

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #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
    #33088

    Yes 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
    #33092

    If 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
    #33098

    This is how to customise the results:

    http://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/#Customising_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 just have_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

    Anonymous
    #33103

    I use the plugin “Post Type Builder” to create everything, becasuse I have not a lot of idea about code.
    So I don’t understand very well what I must do to correct the mistakes.

    Ross Moderator
    #33270

    Hey Celia

    The only way to customize S&F is to follow the instructions here if using the shortcode display method:

    http://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/#Customising_the_Results

    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

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