• Resolved metrosuperstar

    (@metrosuperstar)


    I wish I could upload a screenshot here but I dont think its possible. So let me just describe what Im trying to do. Right now, under my custom post image, there is the title, then it says “Posted in:”, and then the category. I would like to add a line break after the title, and have the “Posted in…” on a separate line. How would I go about doing this please?

Viewing 4 replies - 1 through 4 (of 4 total)
  • [display-posts category_display=”true” category_label=” “]

    Thread Starter metrosuperstar

    (@metrosuperstar)

    this does not work as I am using custom post type taxonomy – i don’t use category_display=”true” as per instructed by the plugin author

    Try insert this piece of code into [child] theme functions.php

    function be_dps_move_image_after_title( $output, $original_atts, $image, $title, $date, $excerpt, $inner_wrapper, $content, $class, $author, $category_display_text ) {
      $output = '<' . $inner_wrapper . ' class="' . implode( ' ', $class ) . '">' . $title . $image . $author .$date .'<br />' . $category_display_text . $excerpt . $content . '</' .     $inner_wrapper . '>';
      return $output;
    }
    add_filter( 'display_posts_shortcode_output', 'be_dps_move_image_after_title', 10, 11 );
    Plugin Author Bill Erickson

    (@billerickson)

    You can use CSS to customize how the results appear. Add the following CSS to your theme or in Appearance > Customize > Additional CSS:

    .display-posts-listing .category-display { display: block; }

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can we break the line before it says Posted In?’ is closed to new replies.