Have category displayed

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  Vinod Dalvi 3 days, 17 hours ago.

  • Author
    Posts
  • #2723
    aster
    Participant
    • Topics: 1
    • Replies: 1

    Is it possible to have the category of the post displayed for the particular post.

    I have a recipe website that has various recipes that have the same title and entry summary but with slight differences and under different categories.

    Currently the search only displays the post title and entry summary but not which category it is in.

    for example:

    http://176.32.230.26/0433indefinitespace.com/test/?s=little+creatures

  • #2726
    Vinod Dalvi
    Keymaster
    • Topics: 0
    • Replies: 244

    I hope you are well today and thank you for your question.

    The plugin doesn’t control the content displayed on search result page.

    It is displayed by the Twenty Seventeen theme that you are using on your site so to achieve this you have to develop custom code in the child theme of Twenty Seventeen theme which is beyond the scope of support that we provide here.

    Best regards,
    Vinod Dalvi

  • #2736
    aster
    Participant
    • Topics: 1
    • Replies: 1

    Ok Cheers, makes sense

    Worked it out, Ive edited content-excerpt.php (template-parts/post/content-excerpt.php) to include categories in the result.

  • #2737
    Vinod Dalvi
    Keymaster
    • Topics: 0
    • Replies: 244

    Awesome great to see you got that achieved.

    Please advise if you have more questions.

    Have a fantastic day!

You must be logged in to reply to this topic.