Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
74 views

Navigate through the gallery using keyboard arrows

What I am trying to do is navigate through a post gallery using the left and right arrow key. I am aware the key codes for these are e.keyCode == 37 and e.keyCode == 39 What will be the best way to ...
1
vote
0answers
52 views

Add query string to wp_link_pages links

I am attempting to add a query string to the output 'Next' and 'Previous' links that are produced from a modified wp_link_pages. In my functions.php I have: ...
0
votes
1answer
71 views

Add wp-link-pages to post

I am trying to add wp-link-pages function to my post where I have images split into many pages in that single post. I already have next and prev button whose functionality is written javascript. I ...
0
votes
0answers
62 views

Adding wp_link_pages to a theme that seems to lack?

I'm using wp-bootstrap as basis to build out a custom site. The wp_link_pages function doesn't seem to work and I'm thinking maybe it's just missing from the theme. I've got a code in a page and the ...
0
votes
1answer
300 views

Post Pagination Modifications (wp_link_pages)

I'm looking to modify how Wordpress is showing the pages of my posts. What I currently have is a previous and next page link at the bottom of the post with the following code: <?php wp_link_pages( ...
1
vote
2answers
142 views

add_filter('the_content', '…') stops pagination from working

I have a function (it deals with using preg_replace_callbackto replace Image URLs with URLs/paths to the uploads directory - lets call it replaceImgUrls()) which is then passed into ...
0
votes
1answer
248 views

How to customize wp_link_pages()

Does anyone know how to customize wp_link_pages() so that <!--nextpage--> will show like "<< previous" and "next >>" links instead of "Pages: 1 2 3 "? Note:- i used ...
0
votes
2answers
326 views

query to use to link to taxonomy single page

Hi & thanks in advance to those who could help me sot out he below: I have customized my home page, using tpl-home.php to show the authors (eg users...) of the most recent posts - nothing ...
4
votes
1answer
265 views

Automatically add <!--nextpage--> after X number of paragraphs

Is it possible to automatically add the <!--nextpage--> quicktag after X number of paragraphs? My client isn't exactly tech savvy so I'm trying to find a way to help them break up their ...
0
votes
1answer
215 views

alternative to wp_link_pages() that only shows link to last page

I plan to have posts with multiple pages that would receive updates (added pages) over time. what i want to do is to display the direct link to the last page of the post on the main index. for ...
1
vote
2answers
250 views

Add Unique Classes to Next and Previous in WP_LINK_PAGES

I'm using the below function for wp_link_pages. It can be viewed in use here. I would like to add a class to the previous link and a class to the next link so they can be styled individually. I'm ...
0
votes
1answer
376 views

Only nextpagelink on wp_link_pages

Does someone have a solution to display only the nextpagelink with wp_link_pages in single posts? I've tried different solutions, but none of it worked. As I reach the last page - wp_link_pages ...
0
votes
2answers
723 views

Make wp_link_pages() suitable for Twitter Bootstrap markup

Below there's the Wordpress code found in post-template.php for the wp_link_pages() function - this function generates a page navigation for posts or pages having the content split into multiple ...
0
votes
1answer
93 views

WP_LINK_PAGES Generating Unnecessary </p> Tag

This is the current output for my WP_LINK_PAGES, notice the unnecessary </p> tag at the end. My code for my custom WP_LINK_PAGES can be found here. <div id="link_wrap"> <span ...
0
votes
1answer
37 views

Closing WP_LINK_PAGES DIV ID w/After Argmuent

In my code below I need to close the div "link_wrap" which I created with $args['before'] = '<div id="link_wrap">'; When I try to paste $args['after'] = '</div>'; above return $args; it ...
0
votes
1answer
91 views

Unable to Change “Pages:” Before WP_LINK_PAGES

Below is a functions.php code for wp_link_pages which allows pagination and previous/next links to be displayed. It also wraps each pagination link in a span class called "classlinks". I need to ...
0
votes
1answer
41 views

Adding an Unlinked Space in a Custom Function

This question has been a pain in my side for the last few days. I am using a function to display page numbers and next/previous links with WP_LINK_PAGES. The code I'm using (below) is a shortened ...
2
votes
1answer
293 views

Add a Class to Current Page WP_LINK_PAGES

I've noticed WordPress has some illogical differences between wp_link_pages and paginate_links. Specifically, WP_LINK_PAGES does not automatically add a class to the current page like paginate_links ...
0
votes
1answer
115 views

Remove Spaces From WP_LINK_PAGES

By default, wp_link_pages (the code which allows you to breakup posts into multiple pages) creates spaces between each number. Is there a way to remove these spaces via functions.php?
0
votes
2answers
226 views

How can I display wp_link_pages before a shortcode, if it is used, or display after content?

I have the following shortcode in my content [src]<a href="#">Some Link</a>, <a href="#">Some Other Link</a>[/src] My post structure looks like this: <?php echo ...
0
votes
1answer
2k views

Changing wp_link_pages() to “Next Page” and “Previous Page” buttons?

Currently I am using <!--nextpage--> to split a post into multiple pages, but I would like to change from Pages: 1 2 3 4 to Next Page and Previous Page links similar to what you see on this ...
3
votes
1answer
735 views

Check if on last page of paginated post using wp_link_pages

A client of mine reviews products on his site, and wants to display the review criteria and score on the last page of each posts. Typically, there are 3-5 pages per post, and I'm looking for a way to ...
1
vote
0answers
106 views

Adding range to wp_link_pages();

I have some very long posts, some have more than 50 pages() and when using wp_link_pages it give me 50 internal post links, clearly this isn't usable. How can I add a range to the wp_link_pages ...
1
vote
1answer
229 views

Limiting number of visible links displayed with wp_link_pages

I need to extend the wp_link_page function to only show a max of 5 links at a time. What is the best approach to limit the number of links? In the end i'd like it to look like this: Previous 1 2 3 4 ...
0
votes
1answer
306 views

wp_link_pages appearing after post content and not at bottom of page

This code worked perfectly! But my issues is that it removes text on pages. I just need the page numbering to appear immediately after the post and not at the bottom of the page. Any suggestions? ...
1
vote
1answer
590 views

PHP code to use on next & previouspage links

I'm having an issue with wp_link_pages tag. I want to list the number of pages of each post with 'next' and 'previous' links that are two image arrows. To better understand the problem I'm having, ...
0
votes
2answers
1k views

Make Current/Active Page Number a Link (WP_LINK_PAGES)

With the default wp_link_pages the current/active page number is not a link. I would like to find a code/hack which turns the current/active page into a link to the top of the page. I am already ...
0
votes
3answers
2k views

Making a Killer wp_link_pages

I am trying to achieve a similar look to the image below, a working example can be found here: http://www.menshealth.com/celebrity-fitness/mark-wahlberg-fighter-workout The needed code must do the ...
8
votes
6answers
5k views

Paged posts - how to use numbers and next/previous links?

I want wp_link_pages (mutli-page posts) to display the page numbers, the word "previous" before those numbers, and a "next" after those numbers. It would look like this: Prev 1, 2, 3, 4 Next I'm ...
3
votes
1answer
1k views

Single Page View for Paginated Posts

Okay, so you know how you can break up a wordpress post by inserting the next-page/page break quicktag. Then, using the wp link pages function in your template, wordpress will generate page 1, 2, 3, ...
0
votes
2answers
651 views

wp_link_pages output appears twice

I believe this is completely different than the question asked here. I'm adding pagination to my theme using a filter hook. The output appears at the beginning and end of my content, rather than just ...
0
votes
1answer
991 views

Insert pagination links - wp_link_pages() - before filters on posts

I'm trying to add pagination support for some longer posts on my site. I've added the wp_link_pages() function to my single.php file, after the_content, but this causes the pagination links to display ...
0
votes
1answer
562 views

Getting two wp_link_pages output

http://i.stack.imgur.com/Yr35p.jpg As you can see in the picture above. I got two links for each page. I'm using <div class="pagelink"><?php wp_link_pages('pagelink=Source %'); ...
1
vote
2answers
95 views

How to deal with equal & similar arguments for a function?

I'm currently extending my pagination plugin, after a hint by @toscho. So the plugin will now use the same filters, hooks and arguments as the native wordpress pagination functions. My problem is ...
1
vote
2answers
870 views

wp_link_page - wrap current page element

I'm trying to make something more meaningful out of the wp_link_pages() result: $paged_page_nav = wp_link_pages( array( 'echo' => false ) ); // Now let's wrap the nav inside <li>-elements ...
0
votes
6answers
5k views

How to style current page number (wp_link_pages)?

When a post is split on more pages TwentyTen theme use the native function wp_link_pages to display a navigation page bar at the end of post. I am trying to style those elements for my theme, but ...