WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. officethug
    Member
    Posted 1 year 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,
    Zak

  2. Aaron
    Member
    Posted 1 year 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

Tags

No tags yet.