WordPress.org

Ready to get started?Download WordPress

Forums

remove date from query post (3 posts)

  1. thesmu
    Member
    Posted 6 years ago #

    hi guys i am wondering if there is any way of stopping the date from showing when using this query:

    <?php
    query_posts('p=174');
    ?>

    thanks in advance!

  2. whooami
    Member
    Posted 6 years ago #

    the date being displayed is a construct of the theme being used.

    Unless I am missing something..

  3. thesmu
    Member
    Posted 6 years ago #

    well, all i have in my template is:

    <div class="content-box">
    	<?php if (have_posts()) : ?>
    		<?php while (have_posts()) : the_post(); ?>
    
    <?php
    query_posts('p=174');
    ?>
    <?php endwhile; ?>
    	<?php else : ?>
    		<h2>Page Empty</h2>
    		This page has no content yet.
    
    	<?php endif; ?>
    
    </div>

    so there is no

    <?php the_date(); ?>

    type tag - so i assumed it was being pulled up by the query, am i wrong?

Topic Closed

This topic has been closed to new replies.

About this Topic