Take the 2-minute tour ×

I am developing a website using WordPress. As I don't want the sidebar, I removed 'get_sidebar()' from my page. But I need to place a category in the content part (like a category for latest news) - not in a sidebar. How could I do this?

share|improve this question
You mean like a archive list of posts from a certain category? –  onetrickpony Jan 5 '11 at 17:18
Yes..how could i do this..? –  anit Jan 5 '11 at 17:41
add comment

1 Answer

You can do this with a query

global $post;
$myposts = get_posts( $args );
<?php endforeach; ?>


You can put that in your category page or in something like Exec-PHP plugin

For looking up the current category you can grab it like

share|improve this answer
add comment

Your Answer

