WP-Paginate and custom queries
-
Hi Eric.
I would like to know if you are planning to upgrade your plugin in order to make it fully functional with custom queries.
I’m using it in a page where I have only one main custom loop and it doesn’t work. Simply it considers the main default query instead of mine so posts_per_page value that the paginate method uses is the default one.
I’ve resolved adding an optional second parameter called $custom_query to the WP_Paginate function and to the paginate method. In case the var is passed I use the $custom_query->query_vars array to get right values.
Let me know if this could be a permanent upgrade for your plugin.
Bye.
Simone
- The topic ‘WP-Paginate and custom queries’ is closed to new replies.