• 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 Category Template

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 Category Template

This topic is: resolved

Tagged: category template, Custom fields

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 2 months ago by sammanjac.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 28, 2016 at 1:26 pm #190393
    sammanjac
    Member

    Hi there,

    I am working on a project, and i have created a custom category template along with ACF for the display of content from one particular catergory. I want the output as similar to the follow ing link:http://dev-preventhiv.conevo.in/qna.html

    Here is the snipped of code where i am trying to display the data from ACF but it does not show up. Can someone tell me what i am doing wrong.
    //* Add Header Markup & Post Info
    add_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5);
    add_action('genesis_entry_content','custom_field_disp');
    function custom_field_disp(){
    the_field('findoutmore');
    }

    add_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );

    http://dev-preventhiv.conevo.in/qna.html
    July 29, 2016 at 6:47 am #190430
    Brad Dalton
    Participant

    Please paste your code in a Github Gist and link to it from here as it breaks when embedded in a webpage when not wrapped in code tags

    Also, use get_post_meta rather than the_field which is plugin dependant.


    Tutorials for StudioPress Themes.

    July 29, 2016 at 6:49 am #190431
    sammanjac
    Member

    Sure.. Thanks. I am new here and definitely will put in git gist next time. .Thanks for your input on get_post_meta.

    July 29, 2016 at 6:50 am #190433
    sammanjac
    Member

    I found another way to solve the problem for now. But definitely will consider in the use of get_post_meta

  • 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

© 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