Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   [SOLVED] Substitute Post name with "Next Post" and "Previous Page" in post navigation (http://forum.bytesforall.com/showthread.php?t=11246)

Alternateroute Nov 18, 2010 06:01 PM

[SOLVED] Substitute Post name with "Next Post" and "Previous Page" in post navigation
 
Currently when in a single post, the navigation links to the next and previous posts contain the titles of the post (using the %link) set in ATO>>Next/Previous Navigation>>Newer post link on single post pages (and older etc).
I want the navigation to simple say "Next Post" and "Previous Post". Can I replace the %link with something that will do this.

(Apologies is this is the wrong part of the forum, I couldn't find a special section for navigation)

juggledad Nov 18, 2010 07:06 PM

If you want to do this, you are going to have to edit the theme code. If you choose to go that route, keep good notes because the next time you update the theme, you will have to do it again.

you will need to edit bfa_next_previous_links.php and change %title to 'Next' or 'Previous' where appropriate

Alternateroute Nov 18, 2010 08:15 PM

Thanks Juggledad,
I tried that and it didn't work.
But then I notice that the %title was the 'then' part of an if-then-else and there was no value in the 'else' part. Once I changed the else statement to include either previous or next, it worked.
In other words, the %title was on line 142 in the first instance and changing it here did nothing. When I added 'Next' as any extra parameter on line 144 it worked. Note that the %title had not been on line 144 to begin with.

Thanks for your help, much appreciated.
AJ


All times are GMT -6. The time now is 07:04 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.