Created
December 19, 2011 20:49
-
-
Save sguzik/1498804 to your computer and use it in GitHub Desktop.
WordPress Query for Tahiat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Adapted from the first example on: | |
// http://codex.wordpress.org/Function_Reference/get_posts | |
global $post; | |
$args = array( 'numberposts' => 1, 'category' => 17 ); | |
$video_posts = get_posts( $args ); | |
foreach( $video_posts as $post ) : setup_postdata($post); ?> | |
<?php the_content(); ?> | |
<?php endforeach; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment