Chrome has a setting that lets you use a shortcode in the address bar to search a site. If you go into Settings > Search > Manage search engines and scroll down to "Other search engines" you will likely see a list of sites setup with shortcodes. I use the shortcode wpcodex to search the … Continue reading Search the WordPress Codex from the Chrome Address Bar
Category: WordPress Tips
WORDPRESS FUNCTIONS.PHP SNIPPETS
http://www.wpfunction.me/ lets you easily and quickly create a functions.php file by checking off what functions you want.
How to display one random post with WP_Query
<?php $args = array( 'posts_per_page' => 1, 'orderby' => 'random' ); $the_query = new WP_Query( $args ); ?>
