WordPress.org

Forums

WP-Paginate
[resolved] Pagination in a variable (3 posts)

  1. prionkor
    Member
    Posted 4 years ago #

    Hi, is there any way to make the wp_paginate() not echo the pagination immediately? I want to store it in variable? Something like the the_title(); and get_the_title(); function in wordpress?

    Thanks!

    http://wordpress.org/extend/plugins/wp-paginate/

  2. Eric Martin
    Member
    Plugin Author

    Posted 4 years ago #

    I suppose you could do something like:

    ob_start();
    wp_paginate();
    $pagination = ob_get_clean();
  3. prionkor
    Member
    Posted 4 years ago #

    Thanks! resolved!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Paginate
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic