Menu item with no page, but with dropdown

The easiest way would be to create a custom menu item from the Appearance>Menu’s section of the admin area. When you create the custom menu item just add a # for the link URL. You can name it whatever you want. Then just place the desired pages under that menu item.

Using default WP menu functionality to link to custom post-type listing?

Your best bet if you want them to show using the default drag and drop function is to register a custom taxonomy for the custom post type, http://codex.wordpress.org/Function_Reference/register_taxonomy. You can also use the taxonomies parameter when you register your CPT function. http://codex.wordpress.org/Function_Reference/register_post_type The alternative is to make a custom filter for your nav menu that … Read more

Querying both pages and posts

Use get_posts() or filter ‘pre_get_posts’ on the front page. Sample code for get_posts(): $my_post_array = get_posts( array ( ‘post_type’ => array ( ‘post’, ‘custom_type’ ) ) ); foreach ( $my_post_array as $post ) { // do something awesome … } There are also parameters for a custom order by meta fields and so on. A … Read more

CSS for Created Menu “Active Selected” not working, everything else is!

I forgot to add this is for BUDDYPRESS This worked: Add to functions.php: //–Current Page URL function curPageURL() { $pageURL = ‘http’; if ($_SERVER[“HTTPS”] == “on”) {$pageURL .= “s”;} $pageURL .= “://”; if ($_SERVER[“SERVER_PORT”] != “80”) { $pageURL .= $_SERVER[“SERVER_NAME”].”:”.$_SERVER[“SERVER_PORT”].$_SERVER[“REQUEST_URI”]; } else { $pageURL .= $_SERVER[“SERVER_NAME”].$_SERVER[“REQUEST_URI”]; } return $pageURL; } Add to header.php before </header> … Read more