• 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

Re-position Post Meta & Info in Featured Amplified plugin

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 › Re-position Post Meta & Info in Featured Amplified plugin

This topic is: not resolved

Tagged: amplified, featured, genesis, hook, info, meta, order, widget

  • This topic has 2 replies, 2 voices, and was last updated 9 years, 1 month ago by Davinder Singh Kainth.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 2, 2014 at 1:38 am #103291
    Davinder Singh Kainth
    Member

    I am using Featured Posts Amplified plugin to show posts in columns format.

    Current order:
    thumbnail image
    post title
    post info
    post excerpts
    post meta

    What I want:
    thumbnail image
    post meta
    post title
    post excerpts
    post info

    Basically, want to move post meta up and show below image. Also, move post info to bottom.

    Check this webpage - http://dev.iguiding.com/dev/?page_id=471


    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

    May 2, 2014 at 10:18 am #103335
    McGuive7
    Member

    Hi Davinder,

    If you dig into widget.php within the plugin, you'll see that all output within the widget is tied to various hooks - so the good news is you can move pretty much anything around in any order you desire.

    For example, right now the following hooks are used to add post info and meta:

    add_action( 'gfwa_before_post_content', 'gfwa_do_byline', 10, 1 );
    add_action( 'gfwa_after_post_content', 'gfwa_do_post_meta', 10, 1 );

    If you want to switch the two, you can just include a variation of the following code in your functions.php or a custom plugin file:

    // Remove the original action hooks 
    remove_action( 'gfwa_before_post_content', 'gfwa_do_byline' );
    remove_action( 'gfwa_after_post_content', 'gfwa_do_post_meta' );
    
    // Add your new hooks
    add_action( 'gfwa_before_post_content', 'gfwa_do_post_meta', 10, 1 );
    add_action( 'gfwa_after_post_content', 'gfwa_do_byline', 10, 1 );
    

    You may need to tweak things depending on exactly where your code lives, but that's the gist. Let me know if you have any other questions, or if this isn't working for you.

    May 2, 2014 at 11:15 am #103339
    Davinder Singh Kainth
    Member

    Great, code works like charm. Many Thanks McGuive7 !

    Genesis Community Rocks!


    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

  • 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

© 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