Hi Guys,
I am new to CSS/PHP world. But doing a little research I have implemented couple of links to call Previous Post and Next Post on single-post.php just next to Post Meta information. Please see image.
This is the php code I've inserted in that php file (highlighted in red):
I would actually want to call for the same function but with buttons/images.
Please help me on how to implement this with proper CSS to call for it.
Thanks in anticipation.
I am new to CSS/PHP world. But doing a little research I have implemented couple of links to call Previous Post and Next Post on single-post.php just next to Post Meta information. Please see image.
This is the php code I've inserted in that php file (highlighted in red):
Code:
<?php global $theme; ?>
<div <?php post_class('post post-single clearfix'); ?> id="post-<?php the_ID(); ?>">
<h2 class="title"><?php the_title(); ?></h2>
<div class="postmeta-primary">
<span class="meta_date"><?php echo get_the_date(); ?></span>
<span class="meta_categories"><?php the_category(', '); ?></span>
<?php if(comments_open( get_the_ID() )) {
?> <span class="meta_comments"><?php comments_popup_link( __( 'No comments', 'themater' ), __( '1 Comment', 'themater' ), __( '% Comments', 'themater' ) ); ?></span><?php
}
if(is_user_logged_in()) {
?> <span class="meta_edit"><?php edit_post_link(); ?></span><?php
} ?>
[B][COLOR="Red"]<span><?php previous_post(); ?></span> <span><?php next_post(); ?></span>[/COLOR][/B]
</div>
<div class="entry clearfix">
<?php
the_content('');
wp_link_pages( array( 'before' => '<p><strong>' . __( 'Pages:', 'themater' ) . '</strong>', 'after' => '</p>' ) );
?>
</div>
<?php if(get_the_tags()) {
?><div class="postmeta-secondary"><span class="meta_tags"><?php the_tags('', ', ', ''); ?></span></div><?php
}
?>
</div><!-- Post ID <?php the_ID(); ?> -->
<?php
if(comments_open( get_the_ID() )) {
comments_template('', true);
}
?>
I would actually want to call for the same function but with buttons/images.
Please help me on how to implement this with proper CSS to call for it.
Thanks in anticipation.