Is it possible to link to the same page from wordpress page menu?

well you’ve to change code in loop for example currently now loop is like <?php if(have_post) : while(yourquery): the_post : <div>the_title</div><div>the_content</div> endwhile; endif; Then Just Add this line also <?php if(have_post) : while(yourquery): the_post <a name=”$i”><div>the_title</div><div>the_content</div></a> endwhile; endif;

Editing the nav menu?

The wp_nav_menu function supports multiple styling parameters, http://codex.wordpress.org/Function_Reference/wp_nav_menu For instance you can add a $menu_id and then style the CSS for each <li> along the lines of border-right:1px solid; . Another option is to just add a “|” for the $link_after parameter, but you should probably use the ascii HTML entity value for it which … Read more

Conditional custom menu?

I do not believe a plugin would be needed for this. You could add a class to the menu item (enable the class field under Screen Options when you are editing the menu item). Also be sure that you have the body_class() function applied to your body tag. Then you can do: .your-menu-item-class { display: … Read more

How to output all taxonomy links from a custom post type in a menu?

You can use wp_list_categories() which by default, generates nested unordered lists (ul) and just pass product-category as the taxonomy parameter for example: add_filter(‘wp_nav_menu_items’,’add_custom categories’, 10, 2); function add_custom categories($items, $args) { $items .= ‘<li>’ . wp_list_categories( array(‘echo’ => 0, ‘taxonomy’ => ‘product-category’, ‘title_li’ => ‘Product Categories’) ) . ‘</li>’; return $items; }

Check if page has subpages

You have to pass the parent page id to the wp_list_pages function instead of the global $post->ID in your subpages. function wpse33151_getSubpages() { global $post; $parents = get_post_ancestors($post->post_id); krsort($parents); $parents = array_merge(array(), $parents); if (is_home() || is_single()) { $id = get_option(‘page_for_posts’); $parent = get_post_ancestors($id); $id = $parent[0]; } elseif($parents) { $id = $parents[0]; } else … Read more

Show wp_nav_menu() based on URL with no fallback

Use has_nav_menu e.g. $menu_name=$_SERVER[‘SERVER_NAME’]; $menu_name=str_ireplace(“WWW.”,””,$menu_name); $menu_name=str_ireplace(“.”,””,$menu_name); $menu_name = sanitize_title($menu_name); // sanitize! if(has_nav_menu($menu_name)){ wp_nav_menu(array(‘menu’ => $menu_name)); }

Superfish and WordPress: Active Color Problem

Try changing the style of: .sf-menu a, .sf-menu a:visited { /* visited pseudo selector so IE6 applies text colour*/ padding: 5px 10px; color: #FFF; text-decoration:none } The white text colour appears to be coming from there.

Updated WordPress, now Navigation is Messed Up

It’s not WordPress that messed it up, it’s something with your theme. On the working site, your navigation bar looks like this: <ul class=”sf-menu sf-js-enabled sf-shadow”> <li class=”page_item page-item-4 current_page_item”><a href=”http://www.millermusicllc.com/” title=”Home”>Home</a></li> <li class=”page_item page-item-7″><a href=”http://www.millermusicllc.com/services/” title=”Services”>Services</a></li> <li class=”page_item page-item-11″><a href=”http://www.millermusicllc.com/portfolio/” title=”Portfolio”>Portfolio</a></li> <li class=”page_item page-item-13″><a href=”http://www.millermusicllc.com/about/” title=”About”>About</a></li> <li class=”page_item page-item-126″><a href=”http://www.millermusicllc.com/testimonials/” title=”Testimonials”>Testimonials</a></li> <li class=”page_item page-item-15″><a … Read more