• 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

changing genesis_entry_content

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 › changing genesis_entry_content

This topic is: not resolved
  • This topic has 3 replies, 2 voices, and was last updated 7 years, 9 months ago by Brad Dalton.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • April 26, 2015 at 3:36 pm #149220
    fpsdf
    Member

    Hi,

    I need to place some additional content within the genesis_entry_content area in this page. I'm intending to use a specific page template for that.

    What would be the right code to do so? Should I remove the original loop?

    Let me be more specific: I'm using this Advanced Custom Fields (repeater) plugin to generate a table of contacts, inside this page.
    I want to have the page content (text area) alongside this table. I was able to write the code to output the table but, up until now, this table is appearing at the very end of the page (after page footer).

    Any help? Thank you very much

    April 28, 2015 at 6:47 am #149383
    Brad Dalton
    Participant

    Something like this in your custom template

    remove_action( 'genesis_loop', 'genesis_do_loop' );
    add_action( 'genesis_loop', 'your_acf_fields' );
    function your_acf_fields() {
    Add your fields here
    }
    

    Not working code as you'll need to add your code for your fields.


    Get Help – Book Consultation.

    April 28, 2015 at 7:32 am #149389
    fpsdf
    Member

    Hey braddalton,

    I thank you for your reply. Your code worked great, but it actually replaces the page content with the fields content.

    As I'm intending to have both things, this is what's been working, so far:

    add_action( 'genesis_entry_content', 'my_fields' );
    function my_fields() {
    my fields here
    }

    I thank you for your help! Have a nice one.

    April 28, 2015 at 9:08 am #149399
    Brad Dalton
    Participant

    Yes, you can use any hook you like. http://genesistutorials.com/visual-hook-guide/


    Get Help – Book Consultation.

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