![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hello all,
I've added the following to functions.php of my child theme and now I've single post navigation which is great. I'd like to put a text with a link to a specific page in the middle of "previous" and "next" links though. What should I add/change in the following code? /**next previous post */ add_action('genesis_after_post_content', 'test_single_nav', 20); function test_single_nav() { if( is_single() ) { echo '<div id="single-navigation" class="navigation">'; echo '<span class="alignleft">'; previous_post_link(); echo '</span>'; echo '<span class="alignright">'; next_post_link(); echo '</span>'; echo '</div>'; } Thank you very much in advance and regards, Tarki |
| Thread Tools | |
| Display Modes | |
|
|
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us