WordPress.org

Forums

Ambrosite Next/Previous Post Link Plus
[resolved] Order jumping around (3 posts)

  1. MrMACHOMAN84
    Member
    Posted 2 years ago #

    <?php previous_post_link_plus( array(
    
                             'order_by' => 'post_name',
    
    			 'order_2nd' => 'post_date',
    
                             'loop' => false,
    
                             'max_length' => 30,
    
                             'tooltip' => 'Previous episode',
    
                             'in_same_cat' => true,
    
                        ) );?> |
    
    <?php next_post_link_plus( array(
    
                             'order_by' => 'post_name',
    
    			 'order_2nd' => 'post_date',
    
                             'loop' => false,
    
                             'max_length' => 30,
    
                             'tooltip' => 'Next episode',
    
                             'in_same_cat' => true,	
    
                        ) );?>

    I'm using the code above to order my posts.

    My problem is that when I post up more than 10 videos, in order, it the link order seems to jump around.

    For example here is Episode 1. It then jumps to Episode 10, and ignores all the others in between.

    They are all in the same category, and only in one category so I can't pinpoint the problem.

    http://wordpress.org/extend/plugins/ambrosite-nextprevious-post-link-plus/

  2. ambrosite
    Member
    Plugin Author

    Posted 2 years ago #

    I just checked your site, but it looks like the next/previous links are working now, so I guess you fixed it?

  3. MrMACHOMAN84
    Member
    Posted 2 years ago #

    I suppose so, I think it was more of a workaround.

    I titled my episodes as follows: "Episode 1, 2, 3... 10" and the slugs showed episode-1, episode-2... episode-10.

    It seemed that when it reached 10, everything got screwed up so to fix it, I added two zeroes to the slugs with 1 digit episodes, and one zero to the slugs with 2 digits.

    So I changed the slugs, not the titles to "Episode-001, episode-002... episode-010" and that seemed to have done it.

    Thanks for the great plugin!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic