• I am trying to display posts filtered by category using WP_Query

    ‘$wp_query = new WP_Query(array( ‘category__in’ => 11,’posts_per_page’ => 5,’paged’ => $paged,));’

    the problem is that I don’t want use a category ID but get the posts
    dynamically from the category that I clicked.

    Thanks

  • The topic ‘Get Posts from clicked Category using WP_Query’ is closed to new replies.