Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm creating a site that has upcoming shows on the homepage. I would like the future shows that are up next to show on the home page. I have created a custom field on the posts called "show_date" with values like "10/21/2013" but not sure how to implement them. Here's what I have so far:

$args = array(
    "tag" => "upcoming",    
    "orderby" => "meta_value_num", // This stays as 'meta_value' or 'meta_value_num' (str sorting or numeric sorting)
    "order" => "ASC"


if (have_posts()) :
    while (have_posts()) : the_post();
        echo '<a href="<?php the_permalink(); ?>">'; echo "<h2>"; the_title(); echo "</h2></a>";    

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.