WordPress.org

Ready to get started?Download WordPress

Forums

Posts for Page
Just what I needed! (1 post)

5 stars
  1. soret
    Member
    Posted 1 year ago #

    Five stars indeed! It is just what I needed! Other plugins wouldn't show the posts well, or would not link pagination well... But this was the only one I could find that did it for me!

    The only thing that this plugin should be ready for is another plugin called WP-PageNavi. Thanks to another user, I could manage to show it with this code:

    if( function_exists('wp_pagenavi')) {
    		$output .= wp_pagenavi( array( 'echo' => false) );
    	} else {
    		if($_opts['cur_page'] > 1) {
    			$output .= "<span class='pfpNav'>" . get_previous_posts_link($_opts['prevText']) . "</span>";
    		}
    		if($_opts['cur_page'] <  $page_links_total) {
    			$output .= "<span class='pfpNav'>" . get_next_posts_link($_opts['nextText']) . "</span>";
    		}
    	}

    and commenting this other one to hide the stock pagination:

    if($_opts['cur_page'] > 1)
    {
    
    	// show prev
    	$output .= "<span class='pfpNav'>" . get_previous_posts_link($_opts['prevText']) . "</span>";
    }
    if($_opts['cur_page'] <  $page_links_total)
    {
    	// show next
    	$output .= "<span class='pfpNav'>" . get_next_posts_link($_opts['nextText']) . "</span>";
    }

    Now, I am a happy man!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.