Forums › Forums › Search & Filter Pro › Portfolio page in Salient theme
- This topic has 8 replies, 2 voices, and was last updated 10 years, 5 months ago by Ross.
-
Anonymous(Private) June 5, 2014 at 2:43 pm #1309
Hi,
I’m trying to combine a portfolio page I build in the Salient Theme with your excellent plug-in. I used project-categories for the main search able option and wanted your plugin to filter bases on project-attributes and/or tags within the search result. Somehow I don’t seem to get the form to work within the portfolio page. Could you enlighten me?
Kind regards. Ton
Under construction at http://www.hierstaat.nl/tentvoortalent/?page_id=2
Ross Moderator(Private) June 5, 2014 at 3:32 pm #1315Hey Ton
This looks like some custom filtering which I do not think the plugin will integrate with…
Basically, the plugin uses the main query to filter the results, and this page you sent me looks like it is using its own custom query… This plugin cannot seamlessly integrate with custom JS code from another developer – there will of course be some work required on your part or I can do some custom work for you?
I’ll try highlight the basic steps you need to take…
1) In S&F settings, enter a
slug
for your search results – which will also become your search page… If you entered “search-results” as your slug then now your search page is
http://www.hierstaat.nl/tentvoortalent/search-results
Use this URL for testing and for searching…2) This page will likely not look like the portfolio page… To use the same layout as the portfolio page, you need to first:
- Find out the template that is being used from your portfolio page (for example
portfolio-layout.php
- Copy
portfolio-layout.php
and call it something else, likesearch-layout.php
- Now, in S&F settings, under custom template, enter
search-layout.php
Now when opening your search results page (
http://www.hierstaat.nl/tentvoortalent/search-results
) you should have the layout you desire?I think now you will be at a stage, where the layout looks right when performing searches, BUT the searches are not correct.
This is because your new template file (
search-layout.php
) is still using a custom query – we need to make it use the main WP query…Let me know when you are here and I will help you with the next steps 🙂
Anonymous(Private) June 6, 2014 at 9:23 am #1330Hi Ross,
Thanks for your reply. I made a copy of the PHP file en renamed. Put in in place and called it from the settings in a form. After saving the form I wanted to check, but going back to S&F I the form I just made disappeared from the list. I repeated it for second time, but after saving and going back to the settings the form(s) keep disappearing..
Ton
Ross Moderator(Private) June 6, 2014 at 10:33 am #1331Hey Ton can you send me your login details?
Thanks
Ross Moderator(Private) June 6, 2014 at 1:21 pm #1335Hey Ton don’t know what happened, I didn’t get the notification – I’m looking now 🙂
Ross Moderator(Private) June 6, 2014 at 1:26 pm #1336Just had a look.. very strange,
When you publish a form everything is ok, but then when you edit an update the form loses its post type and goes to a regular post…
I think this is another plugin you have conflicting and taking over the saving/updating process of the search form.
Basically, the search form is a custom post type –
search-filter-widget
…Do you have any code that messes with CPTs?
Ross Moderator(Private) June 10, 2014 at 3:30 pm #1432Hey Ton hows it going?
I had another user report this issue and it was to do with the plugin Custom Post Type switcher…
There is a filter to exclude post types I believe so ensure you exclude the post type
search-filter-widget
and you should be good to go!Let me know if you have any further issues.
Thanks
- Find out the template that is being used from your portfolio page (for example
-
AuthorPosts