Hey everybody!
Thanks for enduring my presentation and if you didn’t come the stuff below probably won’t make a lot of sense but thanks for reading anyway :)

Fair-Play Scoreboards

The function used here was to get the id of the current page or post and then store it in a variable.


Then we queried the database to find only posts that have a tag that matches the current page’s id.

  • <a href=""><img src="/images/accessory_thumbs/.jpg" alt="" title="" />
  • Willow Creek Baptist Church

    This is code used to query the parent page of each of the individual sermon series.

    
    

    We also needed to get the name of the current post and store it in a variable. Here is that code:

    post_name; ?>
    

    And the last thing was to show the span of dates which we needed to query the first post and the last post.

    $my_query = get_posts("numberposts=1&category_name=$catname&order=ASC");
    $my_query = get_posts("numberposts=1&category_name=$catname&order=DSC");
    

    Bill Darrah Builders

    The challenge here was to display all the images attached to a post. The solution was found from the guys and Digging into WordPress. You can read the original post here.

    And here is the actual query that does all the work.

     'ASC',
        'orderby' => 'menu_order ID',
        'post_type'      => 'attachment',
        'post_parent'    => $post->ID,
        'post_mime_type' => 'image',
        'post_status'    => null,
        'numberposts'    => -1,
    );
    $attachments = get_posts($args);
    if ($attachments) {
        foreach ($attachments as $attachment) {
    
            echo wp_get_attachment_link($attachment->ID, 'thumbnail', false, false);
        }
    }
    ?>
    

    Green is Sexy

    This is the looping function used to get multiple category icons attached to a post.

    category_nicename;
                                echo "$catname";
                                }
                                ?>
    

    Custom Post Types

    In my opinion here is the definitive article right now on Custom Post Types.

    Custom Meta Boxes

    How to Create a Custom Meta Box

    Custom Taxonomies

    Introducing Custom Taxonomies

    Custom Admin Branding

    If you are interested in the plugin I built to help brand your login screen and admin, you can find it here.