Adding a line in php
-
How do you add a line in the single.php file? I would like to add a line between my post and the author? How do you get code php to add a line?
<?php get_header(); ?>
<!– start sidebar one –>
<div id=”sidebar1″ class=”sidebar”>-
<?php /* Widgetized sidebar, if you have the plugin installed. */
- <h2><?php _e(‘Recent Posts’); ?></h2>
if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar(2)) : else : ?>-
<?php get_archives(‘postbypost’, ’10’, ‘custom’, ‘
- ‘, ‘
‘); ?>
<?php endif; ?>
</div>
<!– end sidebar one –><div id=”content” class=”widecolumn”>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<h1 class=”title”>” rel=”bookmark” title=”Permanent Link: <?php the_title_attribute(); ?>”><?phpthe_title(); ?></h1>
<div class=”entry”>
<?php the_content(‘<p class=”serif”>Read the rest of this entry »</p>’); ?><?php wp_link_pages(array(‘before’ => ‘<p>Pages: ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>
<?php the_tags( ‘<p>Tags: ‘, ‘, ‘, ‘</p>’); ?></div></div><?php the_author(); ?>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
- The topic ‘Adding a line in php’ is closed to new replies.