Is it possible to skip certain specified pages when using < prev and next > links?

Haven’t checked the plugin you mention… but I use this solution for doing an “author” navigation. I adjusted the functions and this should probably work without the plugin (untested). You need to adjust the ID, and the conditions itself if you want more exclusions. [edit: corrected functions, the queries were missing the menu_order condition] notes: … Read more

Show all parts in multipage post

Well, you can turn it off completely or use the following code along with some sort of conditional statement to switch it on or off. The multipage part is set up in the setup_postdata() function in wp-includes/query.php. There’s an action at the end of the function called the_post. If you hook onto that and then … Read more

Can I use images as anchor tags with

Well, yes, of course. Take a look at this reference: http://codex.wordpress.org/Function_Reference/previous_post_link http://codex.wordpress.org/Function_Reference/next_post_link You can customize it however you like, so you can simply put an html image tag in there. The function must be used in the loop to work. I’d do it like this: <?php previous_post_link(‘%link’, ‘<img src=”https://wordpress.stackexchange.com/questions/141544/Image URL” width=”20″ height=”20″ alt=”%title” />’); ?> … Read more

Are shortcode functions applied while rendering the content, or are they executed and stored with the post content?

I don’t know in what exact order filters are applied to the_content(); and whether that’s early enough, but if it doesn’t work for you, I believe it is safe to assume that you’re right in thinking that the shortcode is applied to late. From /wp-includes/shortcodes.php (line 296, wp 3.2.1) it can be seen that shortcodes … Read more

Previous & Next on Index Page broken

I had the exact same problem a while ago on one of my themes. My problem was that the theme used query_post to filter out some posts. This caused the pagination to fail. I think this was the code that solved it: <?php if ( is_home() ) { $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; … Read more

as a shortcode within the loop?

Using the the_posts filter: Here’s one idea using the the_posts filter, that fires before setup_postdata() is activated: /** * Replace [nextpage] with <!–nextpage–> through the ‘the_posts’ filter. * * @see http://wordpress.stackexchange.com/a/183980/26350 */ ! is_admin() && add_filter( ‘the_posts’, function( $posts ) { $posts = array_map( function( $p ) { if ( false !== strpos( $p->post_content, ‘[nextpage]’ … Read more

Programmatically inserting page breaks

Overriding the default page breaking – with external content parts The page breaking takes place in the WP_Query::setup_postdata() method, when we call the_post() in the loop. The page parts are stored in the global $pages array and fetched with get_the_content() function. This happens all before the the_content filter is applied to the content. We can … Read more

and previews

There’s a bug regarding content pagination links not working when previewing scheduled posts or pages. See ticket #32295 There’s already a proposed patch that adds the missing future status check within the _wp_link_page() helper function, that generates the content pagination links. We could e.g. construct a quick-fix like: add_filter( ‘preview_post_link’, function( $link, $post ) { … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)