Custom post type search

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 4 years ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #26281
    mirkuz37
    mirkuz37
    Participant

    Hello,
    I have an issue in this page http://ingve.it/ricerca-avanzata/.
    If you try to search, for example, the word “Verbale” you can see the filter “Filtra per tipo di contenuto” (filter based on custom post type) doesn’t work.
    The result’s list is always the same and doesn’t change according to the checkboxes selected.
    Where is the problem?

    Thank you very much

    Mirko

    #26282
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Mirko,

    I am guessing, that the ordering of the results might be the problem here. By default, the taxonomy term archive page reults are shown first, then the custom post types. Try changin the order so that the custom post types are first: https://i.imgur.com/ppOA7mg.png

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #26285
    mirkuz37
    mirkuz37
    Participant

    Hi Ernest,
    ok I’ve changed the order.
    So I understand that some elements (like attachments -> pdf) are always displayed in the results even none of the checkbox is selected.
    Right?
    ..and in this situation the only thing to do is to show them in the last positions.. correct?

    Thank you
    Mirko

    #26287
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Yes, in that case they are always shown.
    You can however use the content type filters, and that allows disabling the attachment and taxonomy term results as well, as a separate filter.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


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

You must be logged in to reply to this topic.