WordPress.org

Forums

Ambrosite Next/Previous Post Link Plus
[resolved] Showing the thumbnail after the title on previous links (3 posts)

  1. Timidyo
    Member
    Posted 1 year ago #

    Hi,

    How can I make the thumbnail appear after the title on the previous post link? Currently it looks like this:

    {thumbnail}<<{previous post's title} {thumbnail}{next post's title}>>

    Ideally, it would look like this:

    <<{previous post's title}{thumbnail} {thumbnail}{next post's title}>>

    Here's the code that I'm using:

    <?php previous_post_link_plus( array(
                        'order_by' => 'post_date',
                        'order_2nd' => 'post_date',
                        'meta_key' => '',
                        'post_type' => '',
                        'loop' => false,
                        'end_post' => false,
                        'thumb' => true,
                        'max_length' => 0,
                        'format' => '%link',
                        'link' => '%title',
                        'date_format' => '',
                        'tooltip' => '%title',
                        'in_same_cat' => false,
                        'in_same_tax' => false,
                        'in_same_format' => false,
                        'in_same_author' => false,
                        'in_same_meta' => false,
                        'ex_cats' => '',
                        'ex_cats_method' => 'weak',
                        'in_cats' => '',
                        'ex_posts' => '',
                        'in_posts' => '',
                        'before' => '«',
                        'after' => '',
                        'num_results' => 1,
                        'return' => ''
                        ) ); ?>

    Thanks!

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

  2. ambrosite
    Member
    Plugin Author

    Posted 1 year ago #

    This is a CSS issue. The link and thumbnail have the CSS classes .post-link and .post-thumbnail respectively. You need to adjust the floats, or possibly use relative positioning, to move them where you want.

    http://www.w3schools.com/css/css_float.asp

    http://www.w3schools.com/css/css_positioning.asp

  3. Timidyo
    Member
    Posted 1 year ago #

    Now why didn't I think of that? :) Thanks for your help!

    BTW love the plugin!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Ambrosite Next/Previous Post Link Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic