WordPress.org

Ready to get started?Download WordPress

Forums

avoid redirect on empty categories (3 posts)

  1. provola
    Member
    Posted 7 years ago #

    Hi, i'm a new wp user. I want to customize it and I have the following problem: Some of created categories have not posts yet. Currently wp redirect the request for that categories to the homepage. I would avoid this redirect, and, instead, show a message such as "Stay tuned! This category is empty yet!"

    Can somebody help me?

  2. Samuel B
    moderator
    Posted 7 years ago #

    Maybe make an empty post in the category with a title saying:
    "Stay tuned! This category is empty yet!"
    Then when ypu have an actual post, edit it to your desire.

  3. provola
    Member
    Posted 7 years ago #

    yes, it works, but my need is to obtain this result without using empty post. Is it possible?

Topic Closed

This topic has been closed to new replies.

About this Topic