WordPress.org

Support

Support » How-To and Troubleshooting » Link to a specific part of a page?

Link to a specific part of a page?

  • I want to link from my homepage to a category page after the 3rd post. I would like it to be dynamic so when new posts are added I don’t have to update the code. Is there a way to use an anchor tag that refers to a point after a specified number of posts?

    Thanks in advance,
    Zak

Viewing 1 replies (of 1 total)
  • I can’t write it for you but this is how…

    On your categories.php you need to add a variable in the loop and it increases each time. When it hits 3 you output an anchor tag that you can link to it.

Viewing 1 replies (of 1 total)
  • The topic ‘Link to a specific part of a page?’ is closed to new replies.
Skip to toolbar