You will see two post at the bottom of this page. How do I modify this code to give the post title not page title?
< ?php $postslist = get_posts('category=1&numberposts=2&order=DESC&orderby=post_date');
foreach ($postslist as $post) :
" rel="bookmark">< ?php the_title(); ?>
< ?php the_excerpt(); ?>
< ?php endforeach; ?>
idk if this would work, you can give a try.
will get current in loop post id.
will get current in loop post title.
You must be logged in to reply to this topic.