• 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

custom fields in BackCountry theme

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 › custom fields in BackCountry theme

This topic is: not resolved

Tagged: Backcountry Theme, Custom fields

  • This topic has 1 reply, 2 voices, and was last updated 13 years, 1 month ago by SoZo.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 17, 2013 at 11:12 am #12654
    HollyKnott
    Participant

    I'm new to Custom Fields and am using the plug-in Advanced Custom Fields. I'm stumped as to how to now call those custom fields into a unique post. The Backcountry child theme doesn't have a file called single.php that I can modify. I found one in a Genesis folder that I thought I'd copy into the child theme folder as a basis, but it only contains this code:

    genesis();

    In which file should the PHP be entered? Or would I use Genesis Custom Hooks? Seems it's as simple as adding something like:

    <?php echo get_post_meta($post->ID, "Camera_Specs", true); ?>

    but where... ?
    Thanks for any tips.

    January 17, 2013 at 12:27 pm #12669
    SoZo
    Member

    You need to call it through a function added to functions.php with an action hook and conditional tag e.g.

    add_action(genesis_after_post, camera_specs);
    function camera_specs() {
    if( is_single() )
    echo get_post_meta( $post->ID,"Camera_Specs", true);
    }


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

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

© 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