Word Press wp_Query help!!

User 2310615 Photo


Registered User
74 posts

Hello All I am trying to customize the loop to only display 1 post on the home page

I created the follow param but not working


$cltheme_param = array (\
'category_name' => 'news',
'post_count' => '1',
);

$the_query = new WP_Query( $cltheme_param );

but still displays 5 post?
User 38401 Photo


Senior Advisor
10,951 posts

hiya Jason,

You may want to go to WP forums instead of here for help with that, :)

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.