post category by page title
-
is it possible to display all post from one category by the page title.
i set my page as same as my category so i can display all my post on the page.
i cant seem to find the code from my widget > categories so i can just put it on my category template.also tried this is one by i think it only display one category i need some dynamic ones.
<?php $categories = get_categories(); foreach ($categories as $cat) { if ($cat->category_parent != 0) { echo '<span style="padding-left:10px;">'; } echo 'category_nicename.'/">'.$cat->cat_name.' ('.$cat->category_count.')'; if ($cat->category_description != '') { echo ' - '.$cat->category_description; } if ($cat->category_parent != 0) { echo '</span>'; } echo ' '; } ?>
- The topic ‘post category by page title’ is closed to new replies.