WordPress.org

Ready to get started?Download WordPress

Forums

Different Footer links based on page's category (1 post)

  1. xmailr
    Member
    Posted 5 years ago #

    I am looking to dynamically select the category of a page that generates
    content about a single category dynamically and have the category name show up in a link anchor text in the footer.
    On the Alabama page the footer links would be Alabama Lawyer
    On the Alaska page the footer link would be Alaska Lawyer
    Notice the destination is the same but the anchor test is different.

    The challenge is that all these pages are generated dynamically from the same template but each has different content specific to the category.
    So I want the links to follow suit. So I need to have the code read the category name (as the page is generated) and then stick it in the link anchor text.
    Thank you for your help in advance,
    Jeff

Topic Closed

This topic has been closed to new replies.

About this Topic