I have defined a post_view_count meta_key to store the number of post views.
I would like to get an array of post ids sorted by post_view_count value to use in the
functions.php file.
Thanks.
|
I have defined a Thanks. |
||||
|
|
|
It's easy. :) You would use get_posts function. See WP_Query class for complete list of parameters that you can use.
|
|||
|