WordPress.org

Ready to get started?Download WordPress

Forums

delete last post, Blog disappears! (6 posts)

  1. popart
    Member
    Posted 6 years ago #

    I've created a blog with a "Delete Post" button on the front end (so a user who is logged-in may delete his own post from the blog page). See this topic:
    http://wordpress.org/support/topic/118769?replies=8

    However, When the user deletes the last post, the blog disappears! I get an error, page not found.

    I'm also using TDOMF mini forms to post my submissions to the blog. I'm not sure if the TDO mini form is related to this problem?

  2. popart
    Member
    Posted 6 years ago #

    I just tested this on a 2nd blog that I've created, Same thing happens...
    After you delete the last post, the blog page is no longer found!!!

    Both of these blogs use a static page as home page. Hmmm.

    Please help!

  3. iridiax
    Member
    Posted 6 years ago #

    You need at least one post for things to work properly, which is why WordPress comes by default with one starter post.

  4. popart
    Member
    Posted 6 years ago #

    Is there a work-around so that I can delete ALL posts from my blog without the blog page disappearing??

    I've built a site for a client to sell used trucks on their blog page. They want to be able to delete ALL posts if they don't have any trucks for sale. I really need to find a way!

    Thanks.

  5. popart
    Member
    Posted 6 years ago #

    bump.. any ideas for a workaround to keep my blog live without posts in it?

  6. designsimply
    Member
    Posted 6 years ago #

    You should be able to edit your theme's index.php so that you control the message that displays when no posts are found. Look for the "not found" text that you're seeing when there are no posts, and edit that section.

    See the WordPress documentation on The Loop for more details.

    * Always a good idea to backup before you start editing. *

Topic Closed

This topic has been closed to new replies.

About this Topic