Post Meta Data Linebreak

Community Forums Forums Design Tips and Tricks Post Meta Data Linebreak

This topic is: resolved

This topic contains 5 replies, has 2 voices, and was last updated by  nutsandbolts 4 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #105142

    cflam
    Member
    Post count: 2

    Hi, I have used the following php code for the meta data:

    //* Customize the post meta function
    add_filter( ‘genesis_post_meta’, ‘sp_post_meta_filter’ );
    function sp_post_meta_filter($post_meta) {
    if ( !is_page() ) {
    $post_meta = ‘posted by [post_author_posts_link] at [post_time] [post_categories before="Filed Under: "][post_tags before="Tagged: "] [post_comments] [post_edit]‘;
    return $post_meta;
    }}

    I would like to move the categories and tags on a separate line below the author, time, and comments. Any help would be greatly appreciated.

    #105184

    nutsandbolts
    Moderator
    Post count: 3130

    Can you post a link to your site? It’s always easier to help if we can see what you see.


    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #105254

    cflam
    Member
    Post count: 2

    Yes, this is a client’s site:

    http://www.fiktshun.com/fiktshun/

    She just doesn’t want the meta data to run together at the bottom. She’d rather the categories/tags go on a second line. Thanks in advance for the help. I appreciate it.

    #105324

    nutsandbolts
    Moderator
    Post count: 3130

    Try adding a little HTML to your function and it should move the categories and tags down a line:

    //* Customize the post meta function
    add_filter( 'genesis_post_meta', 'sp_post_meta_filter' );
    function sp_post_meta_filter($post_meta) {
    if ( !is_page() ) {
    $post_meta = 'posted by [post_author_posts_link] at [post_time]<br /><br /> [post_categories before="Filed Under: "][post_tags before="Tagged: "] [post_comments] [post_edit]';
    return $post_meta;
    }}

    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #105373

    cflam
    Member
    Post count: 2

    Thanks a lot. Worked like a charm!

    #105374

    nutsandbolts
    Moderator
    Post count: 3130

    Awesome! Glad I was able to help. :)


    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Post Meta Data Linebreak’ is closed to new replies.