Tagged Questions
0
votes
1answer
47 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
0answers
77 views
get_posts() with pagination problem
<ul class="list">
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array(
'category' => '8',
'orderby' => 'post_date',
...
0
votes
1answer
72 views
Query specific number of posts for each post type in specific order
This is related to this other question, I tried with get_posts, pre_get_posts, WP_Query and basically every option I could find for 2 days now, no solution yet.
The full problem in hand: I have 2 ...
0
votes
1answer
309 views
Pagination with get_posts seems to work but links not showing
I've a custom page template where I want to query 2 posts from a post type and 1 post from another post type. I have it set up like this:
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
...
0
votes
1answer
106 views
Wordpress pagination URL posts not load
I set up wordpress newly and add next previous pagination in home page using following code
next_posts_link('Older Entries »', 0);
previous_posts_link('« Newer Entries', 0);
Pagination URL work ...
1
vote
1answer
196 views
Setting pagination for images attached to a post
I am trying to figure out how to paginate a post for it's images. I have a custom post type set up to act like a gallery - images only. And would like to paginate the images. I am having a hard time ...
1
vote
1answer
247 views
How can I paginate a list of related posts?
My client's home page displays a paginated list of posts with thumbnails. Each list item, when clicked, navigates to a single post or page, and then uses a separate query to generate the same list of ...
0
votes
1answer
721 views
Adding paging to get_posts()
I'm trying to add paging to the query below. However, I can't seem to get the paging to work. It shows previous/next links, however, they always show the same 2 posts. There are 8 posts in this query.
...
0
votes
1answer
338 views
paginate posts on admin page
I've created a plugin that calls a list of posts and grabs external API data. I am using get_posts to grab the list (because I need to feed the array of links into the API query)
For whatever reason, ...
1
vote
1answer
4k views
Wordpress pagination with get_posts?
I need to make adjustments to a horribly written WP theme that (a custom theme that was written in tables, and bad code).
The theme has several custom templates, but pagination wasn't used and ...
1
vote
1answer
626 views
Adding Pagination on a Custom Author Page
i have created a custom author's page that list the title of their posts. but the problem is i can't get the pagination to work if it's beyond the set post per page value. i have used get_posts() to ...
0
votes
1answer
89 views
Number of posts in the archive
How do I show 10 posts on the first page of the archive, and 20 on others (>1)?
My custom post type name is "apartments".
Cheers!