جرب إستخدام الكود البرمجي التالي :
<?php
// the query
$categName = "Mycateg";
$the_query = new WP_Query( array(
'posts_per_page' => 100,
'orderby' => 'date',
'order' => 'DESC',
'category_name'=>$categName,
));
if ( $the_query->have_posts() ) :
while ( $the_query->have_posts() ) : $the_query->the_post();
print '<h1> the_permalink() </h1>';