• 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

Cannot customize Post Meta using Custom Functions.php – Gutenberg issue?

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 › Cannot customize Post Meta using Custom Functions.php – Gutenberg issue?

This topic is: not resolved

Tagged: .post-info, categories, entry-meta

  • This topic has 4 replies, 2 voices, and was last updated 4 years ago by Brad Dalton.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • May 9, 2019 at 8:31 pm #491073
    njr
    Member

    I'm trying to customize the post meta info to include date, author, categories list (comma separated).

    In effect, I simply need to add categories.

    I had this working (took me a full day of work) but either I lost the code or wordpress updated, or something, and I CANNOT get this to work again.

    I've tried dozens of code like the following, but NOTHING seems to affect the post meta whatsoever. Is this a Gutenberg issue?

    //* Customize the entry meta in the entry header (requires HTML5 theme support)
    add_filter( 'genesis_post_info', 'sp_post_info_filter' );
    function sp_post_info_filter($post_info) {
    $post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]';
    return $post_info;
    }

    May 10, 2019 at 12:56 am #491075
    Brad Dalton
    Participant

    Make sure the Genesis Simple Edits plugin is not active.


    Tutorials for StudioPress Themes & WooCommerce.

    May 10, 2019 at 7:22 am #491079
    njr
    Member

    Thanks Brad. I don't have that plugin.

    Could I try something else?

    May 20, 2019 at 8:52 pm #491256
    njr
    Member

    I tried this again today and it worked. Not sure what I was doing wrong...

    //* Customize the entry meta in the entry header (requires HTML5 theme support)
    add_filter( 'genesis_post_info', 'sp_post_info_filter' );
    function sp_post_info_filter($post_info) {
    $post_info = '[post_date] by [post_author_posts_link] | [post_categories before="" sep=","] [post_comments] [post_edit]';
    return $post_info;
    }

    May 22, 2019 at 5:00 am #491292
    Brad Dalton
    Participant

    The filter is right, looks like you have different shortcodes. Not sure exactly what you wanted to modify buts that the right hook.


    Tutorials for StudioPress Themes & WooCommerce.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 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