Skip to content
Advertisement

Paginate WordPress $wpdb Query?

I have this query:

JavaScript

I’m using this because WordPress can’t properly order meta_values that uses numbers, anyway…everything works fine except I have no clue on how to paginate this using wp_pagenavi.

Any idea?

Advertisement

Answer

Although I wouldn’t recommend it, you could try changing the properties of the global $wp_query object.

JavaScript

You can look up the definition of the WP_Query class or do a var_dump() or print_r() on the $wp_query object after calling query_posts.

Good luck!

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement