Custom post not printing

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' ) );
						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.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.