GET_POSTS
-
Newbie: I’m playing with getting blog extracts into a non wp page on my site (coolthaihouse.com). It was recommended to use get_posts. I’ve been playing with a small test file to see how this get_posts works. The file is at coolthaihouse/blog/wptest.php (and the text follows). The other php calls are just there to show they are ‘working’. Everything returns what it should, except the get_posts doesn’t seem to return anything. Can someone take a quick look at this and let me know what i need to do to get this to work??? and thakz….
<?php
/* Don’t remove this line. */
require(‘./wp-blog-header.php’);
?>
<?php bloginfo(‘info’); ?>
<?php wp_get_archives(‘monthly’,’all’,’option’,”,”,true); ?>
<?php get_posts(‘numberposts=10&offset=1’); ?>
<?php get_calendar(‘1’); ?>
The topic ‘GET_POSTS’ is closed to new replies.