Articles of previous

Previous & Next on Index Page broken

So the Next/Previuos on my index page is broken. It goes to page 2 but doesn’t refresh the posts. It will work on my categories and it will work on my posts but it just won’t work on the from page. Here’s my code: <?php get_header();?> <?php include(‘from.php’); ?> <div id=”content”> <div id=”content-main”> <?php if […]

Cache previous versions of website?

I’m working on a new site for a charity. They publish a printed magazine & we would like the website to always reflect the current issue of the magazine. So far I have a front page (home page) with excerpts from 3 most recent lead articles (wp posts). For layout purposes, the articles are categorized […]

Loop – how to get previous/next post for first/last post?

I have a simple loop for a JS slider, I want to display previous and next posts titles on my slide, but I can’t get previous post title on the first slide (because apparently first post have no previous posts): $prev_post = $loop->posts[$loop->current_post – 1]; // ALWAYS NULL FOR FIRST POST 🙁 $next_post = $loop->posts[$loop->current_post […]

How to make Next and Previous attached image navigation on the attachment page?

This question already has an answer here: Setting pagination for images attached to a post 1 answer

Get next/previous cousin page

Hey Guys, I’m trying to build pagination links for the next/previous cousin page. For example, my page structure is like this: Top Level A a1 a2 B b1 b2 When I’m on a2, I want the ‘Previous Page’ link to go to a1, but the ‘Next Page’ link to go to b1 (skipping B). I’m […]

Get previously visited page ID

I would like to get the ID (or permalink) of the page the visitor visited just before visiting the current page – in other words the ID of the last page in the browser history. Can this be done? Any idea how to do it?

Get Next / Prev 3 Posts in Relation to Current Post

I have 7 posts, like this: 1 2 3 4 – this is the current post 5 6 7 As noted, number four is the current post being displayed. I need to create a query that will allow me to display the previous 3 posts (by publication date) and also the three posts after. This […]