• Hi All:

    I am using the new (quite awesome I might add) custom menus in wp30 to create side menus for my site. Some of my menu options need to be “Custom Links” to point to some custom queries I wrote to pass a string from the URL to the page for processing as follows:

    https://my-sites-url.com/about-us/careers/current-openings.html?city=Atlanta

    This is all well and good, except when I need to make the site live (which would change the “https://my-sites-url.com/” portion. I would have to go back and change all my menu links manually.

    Question: Is there a way to use a variable/parameter in the “Custom Link” URL field to have WP automagically add the path to the sites root? ie:

    <?php echo $path;?>/about-us/careers/current-openings.html?city=Atlanta

    I have tried adding the above and WP keeps replacing my php code with standard markup.

    Thanks in advance for looking!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘scripting the site's path in wp 3.0 custom menu links’ is closed to new replies.