dynamic page menu
-
Hi there all,
I have wordpress setup as a cms for my website. So each time you add a new menu in the admin area it uses my custome theme to add a page to my website where i can edit the text content within wordpress.
I have issues with my menu for my website. I want the address bar to show the page name not the current ? and numbers etc.
I changes my permalinks to /%category%/%postname%/
Here is my menu code:-
[code]
<ul id="mainNav">
<li <?php if (is_page('Home'))
{
echo " id=\"current\"";
}?>>
/" accesskey="H" title="Home">Welcome<li <?php if (is_page('restaurant'))
{
echo " id=\"current\"";
}?>>
/restaurant" accesskey="R" title="Restaurant">Restaurant[/code]
This doesn’t work – any ideas how to make my menu work and highlight the link if that page is active?
thank you any other information needed give me a shout – im new to this wordpress and fairly new to php!
- The topic ‘dynamic page menu’ is closed to new replies.