Whether it's the new PressThis interface (used to publish this post 😉 ), character support for things like emoticons, switching themes in the customizer, or the complex query ordering in WP_Query and the other advanced querying classes, WordPress 4.2, "Powell" brings some nice updates to WordPress. Check out the video above and the original blog post for the release … Continue reading Loving the New WordPress 4.2 “Powell” Updates
Tag: WP_Query
New WordPress Theme Functions Video Tutorials on Treehouse
I'm very excited to announce that my latest WordPress videos are up on Treehouse for the How to Build a WordPress Theme project. The latest stage is called WordPress Theme Functions. Here are some of the things we cover: WordPress Variables, Tags and Functions An overview of the WordPress Loop How to code the WordPress … Continue reading New WordPress Theme Functions Video Tutorials on Treehouse
How to display one random post with WP_Query
<?php $args = array( 'posts_per_page' => 1, 'orderby' => 'random' ); $the_query = new WP_Query( $args ); ?>
