• Resolved sodypop

    (@sodypop)


    i am stumped. :-/
    i am trying to add a conditional for my posts stating basically the following:

    if this post was entered more than 2 weeks ago then do nothing.

    if it is newer than 2 weeks ago then echo “new”.

    i for the life of me cannot figure it out.
    surely someone can help me with this one?
    i am sure it’s basic php.

    here is the code that it will reside in:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class=”thumb”>
    “><?php the_excerpt(); ?>
    <span class=”thumbClient”><?php the_title(); ?></span>
    <div class=”newPost”>

    //new post conditional here

    </div>
    </div>
    <?php endwhile; endif; ?>

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘date conditional (help!?)’ is closed to new replies.