Created
September 22, 2010 19:48
-
-
Save jordanandree/592399 to your computer and use it in GitHub Desktop.
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 | |
// needed to load WP core | |
include '../../../wp-config.php'; | |
if($_GET): | |
$id = $_GET['id']; | |
query_posts('p='.$id); | |
if(have_posts()): while(have_posts()): the_post(); | |
// do some template hooks here | |
?> | |
<h2> <?php the_title(); ?></h2> | |
<?php the_content(); ?> | |
<?php endwhile; wp_reset_query(); | |
else: | |
// no posts | |
echo 'No posts'; | |
endif; | |
endif; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment