WordPress.org

Support

Support » Plugins and Hacks » Ambrosite Next/Previous Post Link Plus » [Resolved] Order jumping around

[Resolved] Order jumping around

  • <?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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ambrosite

    @ambrosite

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

    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Order jumping around’ is closed to new replies.
Skip to toolbar