Custom Post Type Name under Post Title on Search Results.

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Custom Post Type Name under Post Title on Search Results.

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #33972
    mkotebo34
    mkotebo34
    Participant

    Is is possible to display the results custom post type name under the title?

    For example on our website we have several pages with almost identical page titles. Example: Coiled Spring ( product ) and The Coiled Spring ( catalog ). “Coiled Spring” is a custom post type “Product” post, while ” The Coiled Spring” is a custom post type “Catalog” post.

    If you search for “Coiled Spring” the results would be:
    Coiled Spring
    The Coiled Spring

    It’s confusing for website visitors to know which is about a product and which is about a catalog. So is it possible to add each post title’s custom post name under the title so search results would be:
    Coiled Spring
    – Product
    The Coiled Spring
    – Catalog

    See attached image if its not clear.

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

    Hi,

    I bit of custom coding is required, but this tutorial should explain everything.

    If you need any help with the custom code, then feel free to add tempoary FTP and back-end access, and I will help you with it.

    Best,
    Ernest Marcinko

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


    #33982
    mkotebo34
    mkotebo34
    Participant

    Code works perfectly!… done.

    • This reply was modified 2 years, 9 months ago by mkotebo34 mkotebo34.
    #33987
    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 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.