How to add


I’ve had to remove the catagories tags from my blog as they were overlapping with the posts above. I would now like to add them next to the date and author (see image below) - much like in the demo for shapely. Is this possible using the ‘additional CSS’ bit of customise?

I can see that I want to add the ‘shapely-category’ class to somewhere in the ‘post-meta’ class (see image below), but i’ve never coded in css before.

Many thanks,


  1. Create a Child theme, Child Themes « WordPress Codex
  2. Put this in your functions.php file in child theme,
	function shapely_posted_on_no_cat() {
		$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
		if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
			$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';

		$time_string = sprintf( $time_string,
		 esc_attr( get_the_date( 'c' ) ),
		 esc_html( get_the_date() ),
		 esc_attr( get_the_modified_date( 'c' ) ),
		 esc_html( get_the_modified_date() )
		); ?>

		<ul class="post-meta">
		<li><span class="posted-on"><?php echo $time_string; ?></span></li>
		<li><span><?php echo esc_html__( 'by', 'shapely' ); ?> <a
					href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>"
					title="<?php echo esc_attr( get_the_author() ); ?>"><?php esc_html( the_author() ); ?></a></span>
		<?php shapely_post_category(); ?>

it will add category to the post meta. :slight_smile:

Let us know,