Hi there!
Thanx for the feedback, much appreciated!
I really know what you mean and was already discussed with a friend of mine for whom I developed the plugin. He wanted it that way, so I just did it. — You only need to change to two code snippets which the link code from WP is in to reverse that :-).
As you pointed out I also thought an options panel will be to much and just left it as it was. Maybe I will change the direction – but your request is the first official one to do that. Just needs more discussion I guess 🙂
Thanx again!
-Dave 🙂
P.S. Any more feedback is very welcomed of course 🙂
Thread Starter
poi3
(@poi3)
Hi,
Yep, i changed those two lines that you’re refering. As the plugin just do one thing very well, i think down the line it won’t be necessary much of updating the code from you. Thous, it could be suficient only to include in the documentation how to change the behavior should one desire it without risking being overwrite in a future update that is not very likely. But if you want to add the option to a panel, more work for you that i won’t oppose 😛
For out of curisity, i asked a few friends of mine what’s their perception in terms of site navigation when they see a left arrow and a right arrow. All said left to go back, right to go forward, and they didn’t understood how that could be different for someone else. Like i said, it is maybe a cultural difference from our countries 🙂
Anyway, you could see your plugin in action at phoouz.com (still in development) muah :b
Cheers,
Pedro Nave
Hi,
I love the simplicity of the plugin, but could you tell me which two lines of code need to be edited to reverse the order of the navigation as it is the wrong way round?
Many thanks,
Ed
Don’t worry, I figured it out. If anyone’s interested copy this code into wp-single-post-navigation/wp-single-post-navigation.php
// Add single post navigation links
add_action( 'wp_head', 'single_prev_next_links' );
function single_prev_next_links() {
if ( is_single() ) { ?>
<div class="wpspn-area">
<div id="wpspn-nextpost">
<?php previous_post_link( '%link', '«' ); ?>
</div>
<div id="wpspn-prevpost">
<?php next_post_link( '%link', '»' ); ?>
</div>
</div>
<?php }
}
?>
Hi all!
With version 1.4 of the plugin, released on 2012-01-07 you can achieve this via your theme, without touching the plugin’s code!
See the plugin description and especially the FAQ section:
– http://wordpress.org/extend/plugins/wp-single-post-navigation/
– FAQ: http://wordpress.org/extend/plugins/wp-single-post-navigation/faq/
I hope you enjoy the changes 🙂
Thanx for using or trying out my plugin!
-Dave 🙂
Hi David,
This is what happened when I put that line of code in functions.php to reverse the direction of navigation –
The direction of navigation did get reversed, but the arrows are pointing in the wrong direction. The arrows are pointing inwards when they should be pointing outwards.
Here’s my site: http://whatadumass.com
Please help!
Thanks!
Hey I solved this by following your directions in the FAQ of changing “laquo” to “raquo” and vice versa.
Issue resolved.
Thanks for the great plugin!