WordPress.org

Ready to get started?Download WordPress

Forums

Ambrosite Next/Previous Post Link Plus
looping disabled, but links still displays (4 posts)

  1. sweetrobot
    Member
    Posted 1 year ago #

    i have the following:

    <?php previous_post_link_plus( array(
                             'order_by' => 'custom',
    						 'meta_key' => 'begins',
                             'max_length' => 30,
    						 'thumb' => 'thumbnail'
                        ) );?>
    
    <?php next_post_link_plus( array(
                             'order_by' => 'custom',
    						 'meta_key' => 'begins',
                             'max_length' => 30,
    						 'thumb' => 'thumbnail'
                        ) );?>

    meaning i have left looping at the default, disabled state. however, it still allows looping.

    also, how can i give next and prvious links different classes, so i can apply different styling in css? for example, i may want to float one left, and the other right, etc.

    thanks.

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

  2. sweetrobot
    Member
    Posted 1 year ago #

    oops. dumb of me. please disregard the css posrtion. i believe the loopign issue is because i am sorting by two parameters- 'ends' and 'begins'. on the index, only bgins is used. in other pages, such as search, category, tag, first begins are displayed, followed by ends. how could this be handled? so that it first loops through 'begins', then by 'ends'?

  3. ambrosite
    Member
    Plugin Author

    Posted 1 year ago #

    That is not possible. The plugin can only sort on one meta key.

  4. sweetrobot
    Member
    Posted 1 year ago #

    ok, thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags