Forums Forums Search & Filter Pro Customizing search results display not working

  • This topic has 21 replies, 2 voices, and was last updated 10 years ago by Anonymous.
Viewing 2 posts - 21 through 22 (of 22 total)
  • Ross Moderator
    #6997

    Hey Manas

    Just had a look.

    The two problems you are experiencing are not to do with the plugin directly. I’ll answer below:

    1. Display: the display of search results is not showing up as a grid. This is the blog page: beta.trycompass.cf/mentors, which does show up as a grid. I have added custom css to make it show as a grid, in case that matters. (I changed the theme again).

    Customising your search results layout is out of scope of support for the plugin (I cannot setup everyones themes for them) however I will point you in the right direction. You must follow the instructions here:
    http://www.designsandcode.com/wordpress-plugins/search-filter-pro/docs/#docs-new-ajax
    You must copy the template from Search & Filter plugin folder, to your theme, then you can modify results.php to display as a grid.

    2. The search results show up only for admins. If you sign in with the admin credentials above, the search results show up properly (though not in a grid.) But if you sign in as an ordinary user, the front page shows up instead, which is really weird.

    The plugin does not do anything to do with showing/hiding results as an admin, however this is a problem I have come across with Ajax in general and WordPress sites I have developed. Basically, the correct way to use Ajax with WP (in general) is to use this url: www.yoursite.com/wp-admin/admin-ajax.php – which this plugin uses – however some WP filters etc consider this an admin page.

    Do you have any custom scripts/plugins/filters which restrict access to the admin pages? I think they are being too greedy and “protecting” the WP Ajax url – which they should not.

    Hope that helps!

    Thanks
    Ross

    Anonymous
    #7278

    Hi Ross,

    Sorry, I didn’t notice you’d responded, it didn’t notify me with an email.

    Anyway, thanks, I solved problem #2: I found that it was because of a plugin that prevented access to the ajax.php page. I replaced the plugin with another one, and it looks like it’s working now.

    Any advice on how I should go about modifying results.php?

    Thanks a lot! 🙂

Viewing 2 posts - 21 through 22 (of 22 total)