• Hello everyone,

    I am making a blog template for my theme.
    But I have one problem…

    If I post a post on my blog, I only want to display the parent category of that post.

    So for example, if I post a post with this category hierarchy:
    – Vacation
    – France
    – First Day

    I only want that Vacation is displayed on my blog.

    Does anyone know how to solve this problem?

    Sincerely,
    Joren

The topic ‘Only print the parent category’ is closed to new replies.