The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
25 views

How to modify wp_link_pages() to get “Page: 1 of 4 >>”

I'm using wp_link_pages() in single.php . For now I'm getting output like Pages: 1 2 3 > But I want to make it like Page: 1 of 4 > for the first page and < Page: 2 of 4 > for other ...
0
votes
0answers
22 views

How do I change the link class in paginate_links() [duplicate]

I am trying to change the link classes output by paginate_links() from prev page-numbers and next page-numbers to previous page-numbers and next page-numbers to align with our framework. I'm not quite ...
-1
votes
1answer
61 views

Pagination only working on index page not on a template page

I have a pagination that works perfectly fine on my homepage, the code goes: <div class="articles"> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ...
0
votes
0answers
12 views

Pagination doesnt work for first 19 pages

I have this straightforward pagination form that used to work just perfect: function theme_pagination() { global $wp_query, $wp_rewrite; $wp_query -> query_vars['paged'] > 1 ? ...
0
votes
0answers
16 views

404s with /slug/page/2/ vs. /category/slug/page/2

All of my category pages seem to have the default URL of /slug/, so when I include them in my site's navigation menu, Wordpress renders the links as /slug/. So, the pagination links on the page ...
0
votes
1answer
49 views

Default pagination in Home/Front page

I am using my home page to show all my posts. Therefore I use WP_Query. When I click on the pagination, the url changes but not the page content. This is my code, <?php $paged = ...
0
votes
1answer
28 views

How to change URL structure for pagination pages?

Hi I'm new to WordPress hence if my question was simple or stupid I'm sorry, but please someone tell me how to change URL for pagination pages. Currently I'm having URL for pagination pages as: ...
0
votes
0answers
25 views

Empty pagination pages

I have a category file called category-exhibitions.php where I loop the exhibition category. Now I need the pagination there also, I am trying this but it gives me blank pages when I navigate to page ...
0
votes
0answers
63 views

Pagination works only at two pages

Pagination is only works at the first page and the second page. If I go into the third page I get a 404 error.. Any ideas? This is my archive-aktualnosci.php page: <?php get_header(); ?> ...
0
votes
0answers
45 views

How to change the query string variable for the pagination links?

H, Is there any method to change the pagination links query string name in woocommerce. I have tried changing the 'format' => '?pagination=%#%', but URL is still with page/2/ etc. Any hint ...
0
votes
0answers
68 views

404 on term taxonomy archive pagination only with some terms

On my site I've created a CPT with a hierarchical custom taxonomy. Here the code: **CPT Args** $args = [ 'labels' => $labels, 'public' => true, ...
0
votes
1answer
26 views

Removin /page/2 from pagination

I would like to remove /page from category pagination or translate is so it looks like this: http://www.example.com/category/catname/2 or http://www.example.com/category/catname/customword/2 ...
0
votes
0answers
93 views

Pagination Links Do Not Working on Homepage - Within a new empty theme

I tried a lot of things but in my Wordpress theme Page 2 or etc.. not showing. When i click Page links it showing a white page. My index.php code is here. And i haven't got any code in functions.php ...
1
vote
1answer
48 views

get_the_content_feed with paginated posts

I have a wordpress site and i have been working on it's feed. I noticed that when a post has been paginated with , it only renders the first page of the post. What i need to do is get all the content ...
0
votes
0answers
20 views

Gallery Paginate

I made wordpress gallery.And i made paginator with short code. It works well. But there is a problem. When i list pages numbers it shows all numbers like 1-2-3-4-5-6-7-8-9-10. . But i want to show ...
0
votes
0answers
33 views

Pagination on frontpage with different number of posts

I have a first page with a different number of posts than the next few pages. I got this to work following this example, but I can't get the pagination right. I'm showing 2 posts on the first page ...
1
vote
1answer
153 views

paging in WP_Query on static page

I have a static page, and on that page I want to show a listing of blog posts. I want 12 posts per page (so I want the listing to be paginated). It's all working great, except for the pagination. ...
0
votes
0answers
29 views

How to add page link to the sitemap?

Below is the output I am achieving through Sitemap.php template. Posts 1. Linux 1. Increase swap space in linux in 5 easy steps 2. difference between SetUID, SetGID & Sticky Bits 3. ...
0
votes
0answers
104 views

pagination not working on page template

I am having a custom page for displaying community posts, where i want to display the posts posted in last 30 days sorted in desc order by meta value of post views which has to be greater than ...
0
votes
0answers
53 views

Change link for paginated page '1' to link to canonical page, not /page/1/

When deeper than the first page in paginated set of pages, the link to go back to the first page doesn't link to the canonical page, but the page/1 version of the URL. e.g ...
0
votes
1answer
351 views

In Custom page - next_posts_link Not working while previous_posts_link is working

I have a custom template which has a custom query. I am using this template to create a page (Not a front page) from wordpress. Since the page has multiple posts, I want to put a navigation..... I did ...
0
votes
1answer
459 views

Disable pagination on frontpage

My home page is being build on index.php. I have a wordpress loop somewhere there, because I want to show the two latest posts. So my problem is that my homepage is being paginated. I don't want that. ...
0
votes
0answers
247 views

bones_page_navi and pre_get_posts Action

I'm using the bones wordpress theme, which has the following page navi function: // Numeric Page Navi (built into the theme by default) function bones_page_navi($before = '', $after = '', $myquery = ...
0
votes
1answer
437 views

Paginate Links - Mid Size Less Than 2

I'm trying to work with paginate_links() to get a paginate structure similar to this where the bold number signifies the current page. 1 2 3 1 2 3 2 3 4 Now in theory I should be able ...
0
votes
1answer
259 views

paginate_links() Change the order of links

While using paginate_links() function of WordPress, i need to change the order in which it echo's its output. For example, by default it will output pagination links in this format: Default Output: ...
0
votes
1answer
56 views

Paginating custom posts in categories yields a 404 error

Situation I am trying to paginate some records in Wordpress 4.1. I have a custom post type (events) and a category called 'training'. I have created a custom category template ...
0
votes
2answers
612 views

Wordpress 404 pagination (/page/2) error?

I have created custom post type for videos. Here is my code. function video_register() { $labels = array( 'name' => _x('Video', 'post type general name'), 'singular_name' => ...
0
votes
1answer
459 views

Paginate_links only working on first page

I'm having an issue with pagination. On my site I'm using the plugin "Daisycon affiliate marketing plugin". I would like display the products that are stored in a custom database table (created by the ...
1
vote
2answers
1k views

Paginate links with “ugly” and “pretty” permalinks?

If I have "pretty" permalinks enabled my code will work for static pages (will work if page is set as "home page" or "normal page" ). But my code breaks if I use "default permalink" structure. I ...
0
votes
0answers
91 views

Paginating custom query on category template

I'm trying to paginate my custom post types on my category page template but for some reason when I trying to navigate to 2nd,3rd,4th etc pages it will get re-routed to the index page. This is the ...
0
votes
1answer
258 views

Pagination is not working on custom query inside a custom home page template

I know this is a duplicate question. But to comment on existing question, I dont have enough points. So here we go.... Pagination is not working on custom query inside a custom home page template. ...
0
votes
0answers
102 views

Wordpress Pagination Not Working After Transfer from Localhost

I have the following code for wordpress pagination: function sds_pagination(){ global $wp_query; $big = 99999999999999; echo paginate_links(array( 'base'=> str_replace($big,'%#%', ...
0
votes
1answer
124 views

Add Custom Pagination Permalink

I'm trying to create a page with multiple loops on it and as such also need multiple pagination. This is proving to be a touch difficult, I've managed to get the links to show correctly by using the ...
1
vote
1answer
153 views

Paginated pages are showing correct content but pagination links are not

I am using a custom WP_Query to display posts on static front page. and generating numbered pagination links with paginate_links functions. This is the code I have... $latest_args = array( ...
0
votes
1answer
69 views

How can I get my pagination to recognize that it is on the first page?

So my blog index page which displays all blog posts with pagination is at /my-blog/ Page two is at /my-blog/2 When I'm on any page but the first (or if i use /1 for the first page) paginate_links() ...
1
vote
1answer
184 views

WP_QUERY loop, offset in the arguments and the paginate_links - can these work together?

I have a page where the first 4 posts from category 7 are displayed with their own query and style. Then I have a small box were I want to display the rest of the posts from category 7 and to use a ...
1
vote
2answers
332 views

Pagination Not Displaying on Custom Term Archive

I am trying to achieve pagination on a custom template I have that displays on an archive of terms. It appears to be working because when I navigate to mysite/taxonomy/page/2/ or 3,4,5 etc. the ...
0
votes
1answer
490 views

Pagination doesn't function properly for archive of a custom post type set as the front page

I created a similar question about an hour ago but since then I feel that I've changed things enough so that if someone viewed it for the first time, it'd just be a confusing mess. So I am opening up ...
0
votes
2answers
1k views

Paginate_links links not working accordingly to how I do query the page

Ok, I've a custom post type page to which I have attached the paginate_links function to navigate through the elements. If I don't do anything and let WP using whatever mechanism is attached to the ...
-1
votes
1answer
1k views

Link Back to Parent Category - Woocommerce

I´m using woocommerce and a custom post type=product and taxonomy=product_cat. I need a link back to parent category on every single product and category pages. Already read several posts in the web ...
0
votes
1answer
92 views

How to change page location in Wordpress

I want to change my page location (link address). My blog page location is: http://localhost/wordpress/?page_id=1336. I want to change blog page location http://localhost/wordpress/?page_id=1336 ...
1
vote
1answer
3k views

Unable to get paginate_links working with a custom query [duplicate]

I have built a news section in my Wordpress site with the advanced custom fields and custom post type ui plugins. On the custom news overview page (not the standard wordpress posts) I wanted to limit ...
1
vote
1answer
1k views

Search - Ajax - Alter Query Parameters with Pagination

Too Long ; Didn't Read How do I get pagination to work when I'm creating my query with ajax? I'm working on creating a functional search page that allows the user to filter how many posts per ...
0
votes
1answer
93 views

Custom pagination [duplicate]

I'm using template part for showing portfolio items. It's not page template just portfolio.php file and I'm included it with get_template_part('portfolio'); to homepage. Now everything is working ...
-1
votes
1answer
453 views

Pagination Broken on Loop using ACF

http://dthudson.com/ccr/archive-issues/ The paginated pages are being populated by the content as you can see at the bottom (beneath the posts) but when you click on '2' for instance it loads page 2 ...
0
votes
0answers
80 views

paginate_links adds strong element

I just faced a strange issue with paginate_links in WordPress 3.8.1. The navigation itself works great and as expected. But when going to the last page, it adds <strong> tags to the whole ...
0
votes
2answers
41 views

Give wp link pages it's own template

Here's the scenario, I'm working on a site with 100s of of paged posts using the wp_link_pages tag. The issue I'm having is that they're things I want displayed on the main post that I don't want ...
1
vote
1answer
885 views

Edit format of Paginate_Links()

I'm using paginate_links to paginate the results of a loop. I want to style the pagination using dots instead of numbers, but I'm not sure how to go about doing this. I could try to play around with ...
0
votes
1answer
224 views

paginate_links URL

My code looks like this: paginate_links( array( 'next_text' => __('>'), 'prev_text' => __('<'), 'base' => @add_query_arg('page', '%#%'), 'format' => ...
0
votes
1answer
2k views

Custom post type archive page pagination

I have set up an archive page for my custom post type reference, where I use a query to get all posts of type reference. This works, but when I try to paginate the result, it doesn't work. Right now, ...