WordPress.org

Ready to get started?Download WordPress

Forums

Removing the date on some pages only (5 posts)

  1. mographdesigner
    Member
    Posted 4 years ago #

    I would like to remove the dates on all pages except my blog page(front page)

      and one static page

    . It tried doing this:

    http://wordpress.org/support/topic/330347?replies=3

    But when I tried that suggestion all the dates on all pages were gone except for the front page.

    Can someone help me out? Thanks and God bless.

  2. MichaelH
    Member
    Posted 4 years ago #

    Look at using Conditional Tags

    Something like:

    <?php
    if ( is_page('42') || is_front_page() ) {
        // display your date
    }
    ?>
  3. mographdesigner
    Member
    Posted 4 years ago #

    How do I paste that on my particular page? What part of the page am I going to paste it? Sorry, I'm not a coder, just a designer. Thanks and God bless!

  4. JG99
    Member
    Posted 4 years ago #

  5. MichaelH
    Member
    Posted 4 years ago #

    mographdesigner - you will need to understand WordPress Template Hierarchy and study up on Page Templates.

Topic Closed

This topic has been closed to new replies.

About this Topic