Title: Extracting link from NEXT_POSTS_LINK
Last modified: August 19, 2016

---

# Extracting link from NEXT_POSTS_LINK

 *  [mojolocollc](https://wordpress.org/support/users/mojolocollc/)
 * (@mojolocollc)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/extracting-link-from-next_posts_link/)
 * Ok, simple question, hopefully simple answer… In the body (the_content) of the
   page, I am displaying a single image. All posts within this specific category
   will only have an image in the body. I would like to be able to click on that
   image to view the next post.
 * However, I don’t see a way to extract the “next” link from <?php next_posts_link()?
   > so that I can wrap it around <?php the_content(); ?>.
 * In other words (I realize this is wrong, but it illustrates best what I’m trying
   to do)….
 * .
 * Any ideas???

Viewing 1 replies (of 1 total)

 *  Thread Starter [mojolocollc](https://wordpress.org/support/users/mojolocollc/)
 * (@mojolocollc)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/extracting-link-from-next_posts_link/#post-1215265)
 * Sorry, forgot to code my code…
 * `<a href="<?php next_posts_link() ?>"> <?php the_content(); ?> </a>`

Viewing 1 replies (of 1 total)

The topic ‘Extracting link from NEXT_POSTS_LINK’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [mojolocollc](https://wordpress.org/support/users/mojolocollc/)
 * Last activity: [16 years, 8 months ago](https://wordpress.org/support/topic/extracting-link-from-next_posts_link/#post-1215265)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
