• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Post Meta Data Linebreak

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Post Meta Data Linebreak

This topic is: resolved

Tagged: linebreak, meta data, php

  • This topic has 5 replies, 2 voices, and was last updated 11 years, 11 months ago by nutsandbolts.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • May 14, 2014 at 12:41 pm #105142
    cflam
    Member

    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.

    May 14, 2014 at 5:36 pm #105184
    nutsandbolts
    Member

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


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

    May 15, 2014 at 2:46 am #105254
    cflam
    Member

    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.

    May 15, 2014 at 9:56 am #105324
    nutsandbolts
    Member

    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/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    May 15, 2014 at 3:40 pm #105373
    cflam
    Member

    Thanks a lot. Worked like a charm!

    May 15, 2014 at 3:40 pm #105374
    nutsandbolts
    Member

    Awesome! Glad I was able to help. 🙂


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

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Post Meta Data Linebreak’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble