Show category label if results returned is taxonomy

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Show category label if results returned is taxonomy

This topic contains 11 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 5 months, 3 weeks ago.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #37895
    zinc
    zinc
    Participant

    Hi there we have amended the plugin settings so that it displays the custom post type first then the title (see image). Is it possible to show the word category: and the product_cat if the item returned is a taxonomy?

    In our attached image the first two results are categories so we would like to have e.g Category: Power Clusters for Military Hangers

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #37899
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Yes – it needs a bit of custom code, but this documentation will help you with that.

    Best,
    Ernest Marcinko

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


    #38138
    zinc
    zinc
    Participant
    You cannot access this content.
    #38150
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

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


    #38171
    zinc
    zinc
    Participant
    You cannot access this content.
    #38199
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    I’m afraid that kind of ordering is not possible. You can change the order of the result types, but all post type results are considered as a single group.

    Best,
    Ernest Marcinko

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


    #38212
    zinc
    zinc
    Participant
    You cannot access this content.
    #38218
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Sure!

    I have logged in and checked your backend configuration. The media file indexing does not seem to be enabled. Please check this documenation on how to enable the media file content indexing and the media service features.
    Once those are set up, and the site is re-indexed, then make sure the attachment search is also se to the index table engine.

    Best,
    Ernest Marcinko

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


    #38648
    zinc
    zinc
    Participant
    You cannot access this content.
    #38659
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    It is hard to tell by only looking at the front-end, but make sure that the primary ordering is set to relevance. Also, for keyword matching you can try this variation, to see if it makes any difference: https://i.imgur.com/fFEXeW3.png

    Best,
    Ernest Marcinko

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


    #38665
    zinc
    zinc
    Participant
    You cannot access this content.
    #38684
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.