Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

rebelyun on "php help"

$
0
0

Hello, can anyone assist me with this code?

I'm trying to modify it so that when a post is labeled under a certain category, it will remove the timestamp and author.

<?php get_header(); ?>
	<div id="single_cont">

		<div class="single_left">

			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
				<h1 class="single_title"><?php the_title(); ?></h1>
<?php the_time('m/j/y'); ?> at <?php the_time('G:i'); ?> by <?php the_author() ?>
				<div class="single_inside_content">
				<?php the_content(); ?>
				</div><!--//single_inside_content-->
				<br /><br />
				<?php comments_template(); ?>
			<?php endwhile; else: ?>
				<h3>Sorry, no posts matched your criteria.</h3>
			<?php endif; ?>                    

		</div><!--//single_left-->

		<?php get_sidebar(); ?>

		<div class="clear"></div>

	</div><!--//single_cont-->

<?php get_footer(); ?>

Viewing all articles
Browse latest Browse all 8245

Trending Articles