Tagged Questions
0
votes
1answer
21 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 ...
3
votes
2answers
245 views
the_title() and the_permalink() won't work on AJAX calls
I've run into a strange problem.
I have a custom loop built with get_posts that works fine when loading the page normally:
<?php
$rows = get_posts(array(
'post_type' => ...
1
vote
1answer
334 views
get post attachment using ajax
I'm developing a plugin and I'm trying to get the url's from a post's attachments with ajax.
If the user is on a single.php page. After some seconds, I'm sending an Ajax request, getting all the ...