• Hey everyone – So I’m brand new to WP, but I have a little tiny bit of PHP experience. Previously when I would hand code my site, I would use something like “?page=” so that I could have the link URL get passed a page name to load the content – if that makes sense.

    What I’m trying to do in WP is use a set of links in my sidebar that will load different content depending on which page I am on. I have 5 pages on my top navbar, and each one of those has an identical set of “internal” links. I want to point the links on the left nav par to something like http://www.perekl.com/%page-name%/fundraising so that if I am on page 1 and I click fundraising I get taken to the fundraising content that belongs with subpage 1.

    I hope this makes sense, I’m sure there is an easy way to do it that I am missing.

    I can’t seem to find the right spot in the code to modify this, and the admin tool doesn’t seem to have the capability.

    Any help is greatly appreciated! Thank you!

    Perek

Viewing 2 replies - 1 through 2 (of 2 total)
  • Would a plugin like Page Links To work?

    Thread Starter perekl

    (@perekl)

    I have the plugin but I can’t seem to figure where the code is I need to modify. I just need to set the current page (I see in sidebar.php that they have defined $current_page) as a built in part of the URL. Anybody know how to do that in WordPress?

    Thanks!

    Perek

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP dynamic linking’ is closed to new replies.