WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] How to display post/category path in a template?

[Resolved] How to display post/category path in a template?

  • Hi all.
    I have few questions, but let’s start with the first one.
    Part of a sitemap (my categories):
    -Memories // category
    — Diaries // category
    — Poems // category
    —- O stars //single post in it

    I want to display a line with the following content:
    – “You are here: Memories” if I am on the category page “memories”
    – “You are here: Memories > Diaries” if I am on the category page “diaries”
    – “You are here: Memories > Diaries > Poems” if I am on the category page “poems”
    – “You are here: Memories > Diaries > Poems > O stars” if I am on the single post page with the post title “o stars”

    Is there any way to do it? Plugin or php, I don’t care pretty much.
    PS. I’m using only categories for my blog navigation, no pages

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] How to display post/category path in a template?’ is closed to new replies.
Skip to toolbar