Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mattywp

    (@mattywp)

    <div class="headline-section">
    <a href="<?php bloginfo('url'); ?>/emergency-news/emergency-services/emergency-training-news"><img src="<?php bloginfo('template_directory'); ?>/images/section-training.png" alt="" /></a>
    <?php the_post_thumbnail(array(35,35), array('class' => 'alignleft')); ?>
    <?php query_posts("showposts=3&order=DESC&cat=12"); while (have_posts()) : the_post(); ?>
    	<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
    <?php endwhile;?>
    </div>
    • This reply was modified 8 years, 5 months ago by mattywp.
    Thread Starter mattywp

    (@mattywp)

    Thanks but I don’t think that will work. My page has many events. Some have dates and times and some don’t. Using the conditional placeholders in the template is either all or nothing. Plus that doesn’t solve the issue of leaving the date and time blank and still being able to publish the page.

Viewing 2 replies - 1 through 2 (of 2 total)