• 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)….

    “> <?php the_content(); ?> .

    Any ideas???

Viewing 1 replies (of 1 total)
  • Thread Starter mojolocollc

    (@mojolocollc)

    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.