Forums › Forums › Search & Filter Pro › Searched/filtered posts are unformatted
- This topic has 6 replies, 4 voices, and was last updated 10 years ago by Ross.
-
Anonymous(Private) December 12, 2014 at 1:16 pm #8990
I’m using this plugin so that my clients “portfolio” (previous projects) can be searched and filtered (duh!). These previous projects are stored as individual posts. The problem I’m having is that the searched/filtered results are not formatted. Each original post is basically 3 lines as follows:
project name: ….
location:….
services provided:…But when the searched/filtered results are returned it looks like this:
project name:… location:… services provided:…How do I get the search/filter results to simply render the posts as they are formatted? And I have the same question for searched/filtered pages, also.
Also, surely someone else has asked this question. How do I search and filter support posts on designsandcode website?
Anonymous(Private) December 12, 2014 at 8:49 pm #9020I’m just a user (not Ross), but from http://www.designsandcode.com/wordpress-plugins/search-filter-pro/docs/
If you wish to customise the display of your results, a template file is included in the Search & Filter folder.
1) Create a folder in your theme folder called search-filter.
2) Copy the file wp-content\plugins\search-filter\templates\results.php from the templates folder in to your newly created folder wp-content\themes\your-theme-name-\search-filter\results.php
Search & Filter will now use this template to display your results 🙂
I had to dig into php code to make it render the way I wanted it. I just found the template that renedered my posts originally, and replace the section in results.php with that one.
Ross Moderator(Private) December 13, 2014 at 2:16 pm #9025Hey Tim (and thanks Gregory)
Yeah you can control the formatting by using a custom template, if using a shortcode follow the steps above if not check the docs as you can still use a custom template
Unfortunately our site needs a bit of upgrading, but the search widget for searching support can be found on this page:
http://www.designsandcode.com/support/Thanks
Anonymous(Private) December 13, 2014 at 6:16 pm #9045Thank you Gregory and Russ. I created the new directory and copied the results.php file to the folder. Once I did that, I expected to find the new template file displayed in my WP control panel, under Search & Filter (such that I could edit in the UI), but I’m not seeing it. Do I have to edit the results.php file directly, in order to configure how my search/filter results are rendered on the page?
Thanks,
TimAnonymous(Private) December 13, 2014 at 8:39 pm #9050Actually, when I select to edit my search and filter form, I see a disabled region in the UI that appears to be where I would define the template filename for my form. But that region is disabled and I cannot define the template file name there. My form id=86. My template filepath is: wp-content\themes\responsive\search-filter\86.php. Any help is appreciated.
Thanks
Ross Moderator(Private) December 16, 2014 at 10:29 pm #9160Hey both, any chance one of you can send me login details so I can take a look? (and give me precise steps to recreate?)
Thanks
-
AuthorPosts