• Hi,

    I’m using Display Posts for a while and it makes me happy. The only wish I have it to create a linebreak between the title and the date of modification.

    My syntax:

    [display-posts posts_per_page=”3″ include_date_modified=”true” date_format=”\\(D j F Y \\- H:i \\u\\u\\r\\)” order=”DESC” orderby=”modified” include_excerpt=”false” ignore_sticky_posts=”true” wrapper=”ul”]

    I would like the modification date to be listed under the post title. Now it continues on the next line depending on whether or not the length of the title fits on the page. That’s not always pretty.

    Does somebody here have an idea how to accomplish such? That would be great. Thanks in advance.

    Best regards,
    Peter.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter itspetrus

    (@itspetrus)

    Nobody? Anybody some idea about how to get this done? Or is it just not possible?

    Thread Starter itspetrus

    (@itspetrus)

    I found a solution myself. Perhaps not the most pretty one. Edit the code in display-posts-shortcode.php and add a line-break like this on line 607 (currently): $title . '<br>' . $date

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Linebreak between post title and date modified’ is closed to new replies.