HOW TO PUT WORDPRES NEXT PREV.SINGLE.PHP LINKS ON TOP by freestile35

VIEWS: 9 PAGES: 2

More Info
									 HOW TO PUT WORDPRES NEXT PREV.SINGLE.PHP LINKS ON TOP



<?php next_post_link('%link','<img src="http://cdn.humorcouch.com/wp-
content/themes/catalyst/img/prevb.png"/>'); ?>




                            <?php

/**
 *
 * single.php
 *
 * The single post template. Used when a single post is queried.
 *
 */
get_header();
?>
                 <?php get_sidebar('top'); ?>
                 <?php
                 if (have_posts()) {
                       /* Display navigation to next/previous posts when
applicable */
                       if
(theme_get_option('theme_top_single_navigation')) {
                             theme_page_navigation(
                                        array(
                                              'next_link' =>
theme_get_previous_post_link('%link','<img
src="http://i1272.photobucket.com/albums/y382/Naeem_Afzal/for%20websites/
next_zps814f1dee.png"/>'),
                                              'prev_link' =>
theme_get_next_post_link('%link','<img
src="http://i1272.photobucket.com/albums/y382/Naeem_Afzal/for%20websites/
prev_zps3eea4dcb.png"/>')
                                        )
                             );
                       }
                       while (have_posts()) {
                             the_post();
                             get_template_part('content', 'single');
                             /* Display comments */
                             if
(theme_get_option('theme_allow_comments')) {
                                   comments_template();
                             }
                       }
                       /* Display navigation to next/previous posts when
applicable */
                       if (theme_get_option('theme_single_navigation')) {
                             theme_page_navigation(
                                         array(
                                               'next_link' =>
theme_get_previous_post_link('&laquo; %link'),
                                               'prev_link' =>
theme_get_next_post_link('%link &raquo;')
                                         )
                             );
                       }
                 } else {
                       theme_404_content();
                 }
                 ?>
                 <?php get_sidebar('bottom'); ?>
<?php get_footer(); ?>

								
To top