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.
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 ""; } ?>
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
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.
6 Comments
Comments are closed.
Great talk at WordCamp Chicago! I particularly appreciated the info about about the Bill Darrah Builders site.
Thanks Jessica! I’m glad it was helpful. Let me know if you have any questions.
Hey Josh just wanted to stop by and say great talk at #wcChicago. By far it was my favorite! You really reassured my use of WP for nearly any site I may need to create.
Thanks again dude.
Awesome. Thanks for the kind words.
Don’t know if you were able to sit in on Jake Goldman’s session on Sunday, but it was very complementary to mine. He went a lot more in depth about customizing the admin.
[…] Speaker: Josh Byers Speaker’s Website: joshbyers.com Speaker’s Twitter: @joshbyers Lecture Slides: Available at slideshare.net Lecture Note: http://redlettersstudio.com/wcchicago2010/ […]
[…] Speaker: Josh Byers Speaker’s Website: joshbyers.com Speaker’s Twitter: @joshbyers Lecture Slides: Available at slideshare.net Lecture Note: http://redlettersstudio.com/wcchicago2010/ […]