Forums › Forums › Search & Filter Pro › Custom Post type with Custom Taxonomy search form
Tagged: custom post type, custom taxonomy
- This topic has 7 replies, 2 voices, and was last updated 8 years, 10 months ago by Anonymous.
-
Anonymous(Private) January 26, 2016 at 5:54 pm #35345
Hello,
I’ve created a Custom Post type with a Custom Taxonomy. I display all this CPT and I filter by taxonomies.
Now, when I use an archive to display the results, it works almost fine. It shows the CPT filtered according to my choice. But in the results page, now I don’t have anymore my taxonomies but the standard categories. Am I missing a setting?
On the other hand, I tried to switch my approach and I choose and Ajax load. It works fine and fast, however if I refresh the page I got a 404 error or If I copy the URL I don’t get the expected results. I guess this is caused by the Ajax approach, am I right?
Thank you for your help.
AndrésRoss Moderator(Private) January 26, 2016 at 6:23 pm #35367When you edit your search form, do you notice any errors at the top?
Thanks
Anonymous(Private) January 26, 2016 at 7:19 pm #35372Now I realised that I have the following error:
Error: The custom template file
template-press.php
cannot be found – go to Display Results tab to fixI do have my template but it is on a subfolder /template/template-press.php. I’m going to check this out and I’ll be back.
In the meantime, could you please answer my question about Ajax behaviour. Is this expected?
Regards
Anonymous(Private) January 27, 2016 at 3:01 am #35403Ok. So, I’ve double checked and that error was that I’ve set Archive instead of Post type archive. Under this configuration, I repeat, once I filter, I get my categories as filter parameters instead of my custom Taxonomies. What have to do here?
Otherwise, I can use the Shortcode option. But I would like to understand if it is expected that when I refresh the results page, I get an 404 error or If I copy the URL I don’t get the expected results.
Ross Moderator(Private) January 27, 2016 at 10:57 pm #35518Hey Andres all sorted?
Yeah the ajax issue from your original post sounds like the Results URL issue.
Thanks
-
AuthorPosts