• 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

Snippet to move Post Category

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 › Snippet to move Post Category

This topic is: not resolved

Tagged: entry-meta, Post Categories

  • This topic has 2 replies, 2 voices, and was last updated 8 years, 6 months ago by senordeer.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 14, 2016 at 8:22 am #197570
    senordeer
    Member

    Hello, I have a question regarding moving post categories above featured image in a plugin (the plugin is Genesis Featured Posts Combo, I know I can contact the plugin author but I think this is more of a general Genesis question).

    Site: http://baublesandbackdropsbeta.wordpresstest.net/

    I used the following in functions.php to move the post info above the content in the widget:

    //* Add Post categories above Post title on gfpc Posts
    add_action ( 'gfpc_before_entry', 'genesis_post_info', 9 );

    So I know that the widget hook (gfpc_before_entry) is correct bc it moves all of the post info above the widget content. But I can't figure out how to switch the genesis_post_info to display the post category above the content instead. When I try this:

    //* Customize the entry meta in the entry footer (requires HTML5 theme support)
    add_filter( 'gfpc_before_entry', 'sp_post_meta_filter' );
    function sp_post_meta_filter($post_meta) {
    	$post_meta = '[post_categories] [post_tags]';
    	return $post_meta;
    }
    

    It doesn't display anything. Thanks and I can contact plugin author as well but thought I would post here first thanks!

    http://baublesandbackdropsbeta.wordpresstest.net/
    December 15, 2016 at 3:14 am #197604
    Brad Dalton
    Participant

    Hello

    Can't test this unless we have a copy of the plugin so i suggest you post this question on the plugin authors forum.


    Tutorials for StudioPress Themes.

    December 16, 2016 at 12:14 pm #197695
    senordeer
    Member

    Hi! I actually did contact the plugin author and got the snippets so am posting them here in case they are helpful to anyone else:

    //* Add Post categories above featured image on Genesis Featured Post Combo
    add_action ( 'gfpc_before_entry', 'genesis_post_categories', 9 );
    function genesis_post_categories() {
       echo '<div class="post-categories">';
       echo do_shortcode('[post_categories before=""]');
       echo '</div>';
    }
    //* Add Post date above featured image on Genesis Featured Post Combo
    add_action ( 'gfpc_entry_header', 'gfpc_genesis_post_date', 1 );
    function gfpc_genesis_post_date() {
       echo '<div class="post-date">';
       echo do_shortcode('[post_date]');
       echo '</div>';
    }

    I still have to fool around with the categories because they don't align if one chooses the 2, 3 or 4 column layout but the snippets work if you're using this plugin.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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

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