Forums Forums Search & Filter Pro Custom Post type with Custom Taxonomy search form

Viewing 8 posts - 1 through 8 (of 8 total)
  • Anonymous
    #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és

    Ross Moderator
    #35367

    When you edit your search form, do you notice any errors at the top?

    Thanks

    Anonymous
    #35372

    Now 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 fix

    I 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
    #35403

    Ok. 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.

    Anonymous
    #35404

    When using the Shortcode option, I got:

    my-cpt/_sft_press-category=le-petit-marius

    instead of:

    my-cpt/?_sft_press-category=le-petit-marius

    Anonymous
    #35405

    I haven’t filled the results URL.

    Ross Moderator
    #35518

    Hey Andres all sorted?

    Yeah the ajax issue from your original post sounds like the Results URL issue.

    Thanks

    Anonymous
    #35556

    Yes, Ross. You can consider it as solved.
    Thanks

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