0
votes
0answers
20 views

Find relative post number in single post page

My problem: I need to find the relative post number (e.g 3rd of 10 posts) within a category. I can get the total amount of posts (10), like so: $category = get_the_category(); ...
0
votes
0answers
35 views

WP_Query to get all posts with specified category in priority

Now I have a query to get all posts in the specific category featured. $today = date('Y-m-d'); $args = array( 'post_type' => 'event', 'event-categories' => 'featured', ...
1
vote
1answer
38 views

Conditional statement to show pagination

I'm using pagination to navigate between posts from the same category. Here is my code: <div class="article_single_prev_next"> <div class="article_prev"> <?php ...
-4
votes
1answer
189 views

paginate_links() returns NULL instead of the pagination links, but pagination is actually happening

What I'm trying to do: Print the pagination links on the home, which uses template index.php, with pagination functions such as paginate_links(), outside The loop. What happens instead? Instead of ...
0
votes
0answers
12 views

How do I create pagination? [duplicate]

I've got a site with a static front page and another page for posts. On the posts page I'm using paginate_links() to generate pagination. However, it isn't producing output. Dumping the output as a ...
0
votes
0answers
68 views

Loop Navigation Problem

currently I have a loop on my index page which is set to show upcoming posts in ascending order. This is an events listing page. However the pagination at the bottom of my page doesn't work, I am not ...
-1
votes
1answer
469 views

pagination/prev and next page links not showing

I'm having trouble getting my pagination links to work, or even show up. I've tried several variations of the code, but here is what I have in home.php: <?php get_header(); ?> <?php ...
0
votes
1answer
270 views

Pagination and multiple loops

Right, so what I currently have is a page split into three using a css grid. The third column is the sidebar, The first two each have a query for posts to display, and create a nice grid of posts ...
0
votes
2answers
468 views

How does offset works on pagination? (get_results)

I followed this link and created my own custom query with pagination, But I don't really understand how the offset work. This pagination does not work well, and I'm getting zero value for offset: ...
0
votes
2answers
384 views

pagination for a custom loop with multiple post types

I realize that this seems to be a common problem and I've read through a lot of the posts but it's just not making sense. I was wondering if someone could take a look at my code. What I am trying to ...
-1
votes
1answer
889 views

WooCommerce custom query and paging: Not Found error

I'm experiencing a problem with the following piece code: global $wp_query; $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $filter_args['paged'] = $paged; ...
0
votes
1answer
174 views

Wordpress with broken paging page 3

I am working with a blog page that uses the following query: <?php $paged = (get_query_var("paged")) ? get_query_var("paged") : 1; ...
0
votes
1answer
139 views

Paginated WP_Query doesn't return 404's, even when posts don't exist

I'm currently building a theme for a client, and one of their requirements is endless scrolling on a "Charts" page. They want this to be paginated, and the endless scroll to load the next page below ...
0
votes
1answer
174 views

Pagination issue with Single.php

I am having issues understanding the worlds most simplest concept when it comes to building a single.php file and using pagination. The code bellow shows a wordpress loop, its contents and then ...
-2
votes
1answer
94 views

Pagination not working properly

I have a list of posts from a category as seen here in this example. The problem is, if you scroll down to the bottom and click older, you'll see that the posts on the page have not changed at all, ...
0
votes
2answers
426 views

How can I use the WordPress Loop and Pagination in multiple instances but different scenarios throughout my site?

I am using the Starker Theme as a foundation to build my custom WordPress theme. The Starker Theme comes with a loop.php file for setting up the main loop. I decided to use the loop.php file to ...
2
votes
2answers
446 views

How WordPress converts URL to $query_string

My home.php shows a list of (N) posts and << Previous & Next >> links. When clicked, I want to fetch previous/next list of (N) posts using Ajax. This is: I do NOT want to load the entire ...
2
votes
1answer
228 views

Paging on a future post loop?

I am trying to get paging to work on my future post loop, but to no avail. I am getting no links, when I expect them at the bottom, for pagination despite there being several valid posts in the ...
0
votes
1answer
615 views

Pagination & get_pages?

I have a page that list the child pages of this specifiec page but i would like to add pagination for it , how can i do this ? here is the code that get's the pages <ul id="products" ...
0
votes
1answer
95 views

How to know if I am on 1st page

How can I find out if I am on the 1st page of my home page. I have my page setup like below where I want to display the 1st 2 posts taking up full width. then the rest 1/2. But I want this behaviour ...