How to make a drop down menu with categories

You have to modify only the first part as this: <ul id=”nav” class=”clearfloat”> <li class=”cat-item”><a href=”https://wordpress.stackexchange.com/questions/108006/<?php echo get_option(“home’); ?>/” class=”on”><?php echo get_option(‘blogname’); ?></a> <ul class=”children”> <?php wp_list_categories(‘orderby=name&title_li=’); $this_category = get_category($cat); if (get_category_children($this_category->cat_ID) != “”) { echo “<ul>”; wp_list_categories(‘orderby=id&show_count=0&title_li= &use_desc_for_title=1&child_of=”.$this_category->cat_ID); echo “</ul>”; } ?> </ul> </li> <?php wp_list_pages(“title_li=’); ?> </ul> Here the menu will show up … Read more

How to output the content of a Custom Post Type from a drop down form?

This is going to be 1 part processing an array, and 1 part jQuery. <?php // assume you have a loop already $html_out=””; $select=”<select id=”office-chooser”>”; $select .= ‘<option value=””>Select an Office</option>’; while($loop->have_posts()) : $loop->the_post(); // add each div with excerp. It’s ID is unique and correlates to value of select drop down $html_out .= ‘<div … Read more

Dropdown list of available posts for post editing

OK!! I found the solution on this page: http://www.advancedcustomfields.com/resources/field-types/relationship/ using Basic loop without setup_postdata worked like a dream!! GREAT PLUGIN!! Will review for others. Great documentation and geared towards the less than hard core developers. Thanks Shazzad for the referral!

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)