Show only one page link in content pagination

To show prev/next links rather than numbered pagination you need to set the next_or_number argument to next. Then if you want to remove the previous links, you can filter the HTML for the links with the wp_link_pages filter. But, you can be craftier and filter on the wp_link_pages_link hook. Although it is used in a … Read more

Post page to display specific category

At be top of your template code: <?php /** * The template used for Home page ?> You never closed the comment with a */ which is commenting out the rest of your code. It should look like this: <?php /** * The template used for Home page */ ?>

301 (static page instead latest posts)

1. Plugin: Redirection This plugin allows you to manage 301 redirections. I played around with the settings and they allows regular expressions which could do the following: http://some.site/page/2/ to http://some.site/blog/page/2/ http://some.site/page/3/ to http://some.site/blog/page/3/ etc. They provide documentation on how to set it up which can be found here. This is what I’ve done when creating … Read more

Post Loop Missing Most Recent Post

If you don’t specify posts_per_page in your get_posts you will get the default amount of posts, which is five. Normally the offset is 0 and order is by date, so this doesn’t explain why the most recent post would be missing.

How to bulk add vast amounts of posts

Try the following: Right click on this link and save the XML full of dummy content provided by WordPress In the sample data, you can remove the unwanted data such as pages, comments, categories, etc. Go to Tools > Import in the admin panel Install the “WordPress” importer from the list Activate & Run Importer … Read more

Editing the default page to show all posts, rather than most recent ones

you have to set “post_per_page” to “-1”. Add this code to your home or index.php. WP_Query (recommended) $args = array(‘posts_per_page’ => -1); $the_query = new WP_Query( $args ); if ( $the_query->have_posts() ) { while ( $the_query->have_posts() ) : $the_query->the_post(); the_title(); the_content(); endwhile; /* Restore original Post Data */ wp_reset_postdata(); } else { // no posts … Read more