Link to a specific part of a page? (2 posts)

  1. officethug
    Posted 3 years ago #

    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,

  2. Aaron
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.