get_posts()
-
so i want to use the get_posts() function to call the last three posts offset by one from the current post…. this works fine if i use the example just like it is in the codex, but if i want to change it to display the content rss (i.e.
the_content_rss('','','',20);
) instead of the excerpt (i.e.the excerpt();
) then it shows the content rss from the current post without the offset… can anyone tell me why this happens?<?php
$posts = get_posts('numberposts=3&offset=1');
foreach ($posts as $post):
?>
<h3><a href="<?php the_permalink(); ?>"><?php the_title() ?></a></h3><p class="archiveContent"><?php the_content_rss('','','',20); ?><?php
endforeach;
?>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘get_posts()’ is closed to new replies.