I need to overwrite “class-widget-recent-posts.php” because there is no way you can add a category to the recent post widget. I tried to create the same folder structure in the child theme but it’s not working.
<?php if ( woodmart_loop_prop( ‘parts_meta’ ) && get_the_category_list( ‘, ‘ ) ): ?>
<div class=”recent-posts-cat”><?php echo get_the_category_list( ‘, ‘ ); ?></div>
<?php endif ?>
Let me know how I can add the above code after the post title or date.
Attachments:
You must be
logged in to view attached files.