WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Smarter Navigation] This Plugin is Excellent, Indeed (14 posts)

  1. Masino Sinaga
    Member
    Posted 4 years ago #

    Thanks so much for this excellent plugin. I have tested the Smarter Navigation 1.1.2 in WordPress 2.9.1. It works like a charm. This plugin is just what I have been looking for.

    Since I was so happy after implementing this plugin, then I wrote this following article in order to share my experience when I tried it for the very first time by using Atahualpa 3.4.4 theme:

    http://www.openscriptsolution.com/2010/01/16/how-to-navigate-posts-only-in-the-current-category-using-smarter-navigation-plugin-and-atahualpa-theme-of-wordpress/

    Hope it helps for those of you who need it, especially for those of you who have not known what exactly this plugin about.

    http://wordpress.org/extend/plugins/smarter-navigation/

  2. scribu
    Member
    Posted 4 years ago #

    Thanks for the write-up.

    Note that you can navigate through posts in the same category using previous_post_link() alone, but it won't take into account if the user came from a category archive or not.

  3. ibooktravel
    Member
    Posted 4 years ago #

    Oh Scribu,
    Please help. I have struggled with your plugin for so long. I use atahualpa 3.4.6 with wordpress 2.9.2 and all my posts are in multiple categories. ie, a post called "Best of NZ" is in the "North Island" category as well as in the "Operator-AAT" category.

    All my attempts produce results but only next/prev posts from the 'default' category and not from the category which is the currently chosen category. I have done the suggestions from masino_sinaga (above) with the same affect.

    Do I need to use get_referrer_url() when the post is in multiple categories ?
    Regards, Jacinta.

  4. scribu
    Member
    Posted 4 years ago #

    Paste the URL of your site (if it's public).

    Also, use http://wordpress.pastebin.ca/ to post the code where you are using smarter navigation.

  5. ibooktravel
    Member
    Posted 3 years ago #

    ok a link is http://ibooknewzealand.com/category/north-island/coach-n/ and if you click an item in the table, you would expect to see the next item in the table, at the top of the post. (but probably not in the same order as the table).

    I have tried your standard code and tried different true/false combinations, as follows:

    <?php echo previous_post_smart($format = 'prev &laquo;&laquo; %link',	$title = '%title',$fallback = true,$in_same_cat = true,$excluded_categories = ''); ?>
    <?php echo  next_post_smart($format = ' next &raquo;&raquo; %link',	$title = '%title',$fallback = true,$in_same_cat = false,$excluded_categories = '');?>

    Currently the site is using masino_sinaga's directions above. See http://wordpress.pastebin.ca/1867776, This is Atahualpa's NextPrevious.php file which was the only thing to be altered in masino_sinaga's directions. Snippet from that file is below:

    //JACINTA ADDED BELOW & COMMENTED FOLLOWING 2 LINES
    previous_post_smart($bfa_ata['single_next_prev_older']) :
    next_post_smart($bfa_ata['single_next_prev_newer']);
    /*		previous_post_link($bfa_ata['single_next_prev_older']) :
    		next_post_link($bfa_ata['single_next_prev_newer']);
    */
    		echo ' &nbsp;</div>' . ($bfa_ata['home_single_next_prev'] != '' ?
            '<div class="home"><a href="' . $bfa_ata['get_option_home'] . '/">' .
            $bfa_ata['home_single_next_prev'] . '</a></div>' : '') .
    		'<div class="newer' . ($bfa_ata['home_single_next_prev'] != '' ?
            '-home' : '') . '">&nbsp; ';
    
    		$bfa_ata['next_prev_orientation'] == 'Older Left, Newer Right' ?
    //JACINTA ADDED BELOW & COMMENTED FOLLOWING 2 LINES
    next_post_smart($bfa_ata['single_next_prev_newer']) :
    previous_post_smart($bfa_ata['single_next_prev_older']);
    /*
    		next_post_link($bfa_ata['single_next_prev_newer']) :
    		previous_post_link($bfa_ata['single_next_prev_older']);
    */
    		echo '</div><div class="clearboth"></div></div>';

    Not sure why only one post is displayed at a time. In source display there is just a SPACE where there should be a post (eg in 'older' below):
    <div class="navigation-top"><div class="older"> &nbsp;</div><div class="newer">&nbsp; <a href="http://ibooknewzealand.com/2010/north-island/176/ultimate-north-island/" rel="prev">Ultimate North Island</a> &raquo;</div><div class="clearboth"></div></div>

    Have you got any suggestions ?
    Kind regards, Jacinta.

  6. scribu
    Member
    Posted 3 years ago #

    Not sure why only one post is displayed at a time. In source display there is just a SPACE where there should be a post (eg in 'older' below):

    That happens when there is no older (or newer) post, respectively.

  7. ibooktravel
    Member
    Posted 3 years ago #

    Unfortunately it happens on every post...

  8. ibooktravel
    Member
    Posted 3 years ago #

    There is one category where it works beautifully (http://ibooknewzealand.com/category/south-island/day-tours-s/) and that is because I added the 6 posts via WP Admin. The others were uploaded to the posts table however I have updated all fields I thought might be needed like:
    wp_term_taxonomy!Count (the number of posts in each category)
    wp_posts!guid
    wp_posts!post_name
    Can you think of any other fields that Smarter Navigation uses that might be causing only 2 posts to display in the category ? Ahh, You said "That happens when there is no older (or newer) post, respectively." They all have the same date... And I've just changed that in the table & PRESTO... Smarter Navigation is just the SMARTEST plugin !!! Thank you so much for your time and patience in developing a really fantastic plugin. Kind regards, Jacinta.

  9. ibooktravel
    Member
    Posted 3 years ago #

    Scribu I'm not quite there yet... If you choose a category from the menu (say "North Island + Coach", where here all posts contain "North" in their title, and so are easy to recognise - then click any "North" post), then shouldn't Smarter Navigation only move Next/Previous through posts containing the word "North" ?? This is not the case. Is there a problem with cookies do you think?

  10. HAMMADHASSAN
    Member
    Posted 3 years ago #

  11. scribu
    Member
    Posted 3 years ago #

    @ibooktravel: In one of the cookies it should store a list of all the post ids in the Coach-N category, but it doesn't.

    Maybe you have something that alters the query, like query_posts() etc.

  12. odraude
    Member
    Posted 3 years ago #

    I've noticed the plug-in isn't working right in Google Chrome (It works on Firefox and Internet Explorer).
    I have the default settings for Chrome and it doesn't seem to be blocking cookies. Any ideas on why this happens?

  13. scribu
    Member
    Posted 3 years ago #

    It's not supposed to block cookies.

    I've tested it in Chrome and it works as expected.

  14. odraude
    Member
    Posted 3 years ago #

    http://eduardoaviz.com
    here's the link

    It could be something I've done, since it's my first website ever, but it doesn't make much sense that it works on firefox and internet explorer.

Topic Closed

This topic has been closed to new replies.

About this Topic