Forums
Home / Themes and Templates / Custom category list with post titles
(@flashpunk)
18 years, 3 months ago
Hello, php noob here, looking for a little help with a category list with post titles listed under example:
/category title / / post title / / post title / / post title / / post title
Any help would be greatly appreciated as I am completely stuck on this. Thanks!
blockquote <?php if (is_category()): $cat = get_the_category(); $cat = $cat[0]; ?>
blockquote
<?php endwhile; ?>
<?php endif; ?> blockquote
(@alphaoide)
Try the post below and modify it to loop all post’s categories.
http://wordpress.org/support/topic/50315?replies=22#post-276457
(@ronny)
18 years, 2 months ago
yes hi. i’m trying to do the same thing as the first poster. is there clearer code? i tried the code on that post but couldn’t get it done.
thanks for your time. Ronny