Tagged Questions
0
votes
1answer
25 views
AJAX pagination call to get_posts with an offset and a meta_value_num sort returns same post on adjacent pages
I have a simple AJAX pagination that seemed to work just fine, calling one Wordpress page (not ideal, I know) with a pagenum and a sort order arguments and it returned 4 custom posts per call. The ...
0
votes
1answer
70 views
Problem with meta_value order after update
I use following array and works fine...
sort post by meta_key where value of t_count is a number:
$args = array(
'posts_per_page' => 10,
'meta_key' => 't_count',
'orderby' => ...
1
vote
1answer
151 views
WP_Query - filter by multiple meta values and order by other meta values
I'm trying to query posts using WP_Query and meta_query parameters:
$args = array(
'post_type' => 'produkty',
'meta_query' => array(
'relation' => 'AND',
...
0
votes
1answer
53 views
Order by meta values
I have 3 meta fields related to dates:
year = 2012
release_date = 14 November 2012
release_date_db = 20121114
I need to show the posts from year 2012 sorted by release_date.
I made this:
...
1
vote
1answer
82 views
Custom order for Mysql array
I have a Page of Posts, each post has a Custom Field "expired" which contains a date in the format YYYY-MM-DD which is used to order the posts. This date is used for a script that tells the visitor if ...
0
votes
1answer
304 views
Order by custom field date with ASC order
I've found several similar question but none of them explains why the below is giving me nothing with ASC order. It works with DESC.
Basically it's a query that should list posts where the custom ...