Alvaro Ojeda
asked 6 years ago

I’m in the process of setting up a personal site using DW-Fixel theme but on the front page I would prefer to display the post categories rather than the author in the block-header, as there will only ever be one author.
In content.php, how do I modify the following to display the post’s categories instead?  I plan to use icon-folder-close instead of icon-user.

<div class="block-meta">
<?php printf('<i class="icon-user"></i> <a href="%s" rel="author">%s</a> <span class="date"><i class="icon-time"></i> <a href="%5$s"><time pubdate datetime="%s">%s</time></a></span>',
get_author_posts_url( get_the_author_meta('ID') ),
get_day_link( get_the_time('Y'), get_the_time('m'), get_the_time('d') )
); ?>

Unfortunately, my own attempts to achieve this have met with limited success in that I’ve succeeded in displaying the categories, but also managed to invoke some debug messages, as I’m not completely familiar with PHP.
Many thanks in advance for your time and support.

1 Answers
answered 6 years ago

To resolve this issue, you can open the content-single.php file then replace the code with the following code:

Powered by DW Question & Answer Pro