Hi,
I am trying to echo my query, but it is not printing out title, althought i can see objects when i do var_dump
$text = new wp_query(array( 'category_name' => 'Photography' ) );
if($text->have_posts){
while($text->have_posts){
$text->is_post();
echo $text->get_the_title();
}
}
This is a way to more complex query as in, i want to limit the post_per_page = 5, but after 5, i want to href to another page, where all post of the above category is listed.