WordPress.org

Forums

WP-PageNavi help (5 posts)

  1. driz
    Member
    Posted 5 years ago #

    I have edited WP-PageNavi to use lists for the pages. For the previous and next links I have the following code:

    next_posts_link('<li>'.$pagenavi_options['next_text'], $max_page.'</li>');

    This wraps the link in <li></li>

    However it doesn't work on:

    previous_posts_link('<li>'.$pagenavi_options['prev_text'].'</li>');

    The list tags don't wrap around the link! Any ideas why?

  2. driz
    Member
    Posted 5 years ago #

    What actually happens is the anchor wraps around the list tags like this:

    <a href="http://website.com/" ><li>&laquo;</li></a>

    Anyone know why?

  3. driz
    Member
    Posted 5 years ago #

    Any updates? Really confused why this isn't working

  4. driz
    Member
    Posted 5 years ago #

    bump

  5. driz
    Member
    Posted 5 years ago #

    bump

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.