pdechery
Forum Replies Created
-
Forum: Plugins
In reply to: [Intuitive Custom Post Order] Custom WP_Query fails on AJAX loadHi there,
I’m having the same very problem.
In my archive.php page I load initially 16 posts and they all follow the order I’ve set in admin via the plugin.
I have a ‘load more’ button on the same page which makes an ajax request and grab 16 more posts. These don’t follow the admin’s (plugin) order and that’s giving me a real headache because it returns repeated posts.
My ajax query looks like this (simplified):
$args = array( 'order' => 'DESC', 'orderby' => 'date', 'status' => 'publish', 'post_type' => array('que_fazer', 'onde_comer', 'onde_ficar', 'evento'), );It’s sad that there seems to be no documentation at all over this subject, since ajax requests are common place in any site.
Still looking for help on this.
Thanks a lot,
OBS: Here’s a link to my online site where you can see the problem happening: http://ec2-54-94-151-225.sa-east-1.compute.amazonaws.com/o-que-fazer/cultura-arte/ (you’ll need to click the ‘load more’ posts button)
Pierre
Well, I got it solved and I think this example may serve for others: in my functions.php file I had a custom image size like the following:
add_image_size('full', 500, 500, true);The name I’ve used (full) caused some kind of incompatibility with the plugin, causing the problem described above.
I renamed the image size and it works like a charm now.