Query posts by custom fields

I managed to figure it out (finally) after about 12 hours of screwing around. The answer here gave me 98% of the answer, and the rest was simply using the appropriate hooks to modify it for my use and to include the postmeta table.

Create a Page Templete to Display Table Of Content for Custom Taxonomies

Here is the final code I managed to working out: <div class=”content” role=”main”> <?php $term = get_term_by(‘slug’, get_query_var(‘term’), get_query_var(‘taxonomy’)); echo ‘<h3 class=”tax-title”>’ . $term->name . ‘</h3>’; ?> <div id=”TableOfContents”> <div class=”ui-boxmenu”> <ul class=”sections”> <?php $taxonomyName = “tableofcontent”; $parent_terms = get_terms($taxonomyName, array( ‘parent’ => $term->term_id, ‘orderby’ => ‘menu_order’, ‘hide_empty’ => false )); foreach ($parent_terms as $pterm) … Read more

pre-upload text and video for the future

Unless I’m misunderstanding you, you should just need to set the publication date of the post in the future and “Publish” it. This should walk you through you what you need to know: http://wordpress.tv/2009/01/14/publishing-your-post-at-a-later-date/

Remove duplicated values from meta box values

Solution I created array outside the while loop and checked if the value is in array or not. <?php $args = array(‘post_type’ => ‘posttype’); $emptyvalue = “”; $optionname = “optionname”; $the_query = new WP_Query($args); $output =”<select name=””.$optionname.””> <option value=””.$emptyvalue.””>Location</option>'”; $arr = array(); while ( $the_query->have_posts() ) : $the_query->next_post(); $id= $the_query->post->ID; $location = get_post_meta($id, ‘institution_location’, true); … Read more