WordPress.org

Ready to get started?Download WordPress

Forums

How to remove post info on a particular post (9 posts)

  1. missDNA
    Member
    Posted 3 years ago #

    Hi, I hope someone can help me.
    I need to take out the post info (Posted by admin on Mar 18, 2011 in Uncategorized | 0 comments) on one particular post which was made sticky. I want to take out the post info from the front page and on single page.

    Appreciate any help. Thank you.

  2. mheltone
    Member
    Posted 3 years ago #

    Post your single.php here.. and your index.php

  3. missDNA
    Member
    Posted 3 years ago #

    Single.php

    [code moderated as per forum rules - please use the pastebin]

  4. missDNA
    Member
    Posted 3 years ago #

    INdex.php

    [dito]

  5. mheltone
    Member
    Posted 3 years ago #

    single.php

    [code moderated as per forum rules - please use the pastebin]

    (http://pastebin.com/WwqZSK8x)

  6. mheltone
    Member
    Posted 3 years ago #

    index.php

    [dito]

    (http://pastebin.com/0rZ5s3xf)

  7. missDNA
    Member
    Posted 3 years ago #

    Hi , mheltone

    Thank you so much for taking the time to help me. But it there are some errors on the front page and on singel - on all articles.

    this is the link

    I only wanted the top article (The real truth) to have no post info on both front page and single, but the others will have. "The real truth"post was made sticky.

  8. mheltone
    Member
    Posted 3 years ago #

    Try putting the post info on a conditional tag like...

    <?php if ( is_single('107') ) {
    
    // Do Nothing
    
    } else {
    
    // Put the post info code here.
    
    } ?>

    Put that on the index.php only.

  9. missDNA
    Member
    Posted 3 years ago #

    Thank you for your help :)

Topic Closed

This topic has been closed to new replies.

About this Topic