• 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

Displaying custom fields in single.php

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 › Displaying custom fields in single.php

This topic is: not resolved

Tagged: custom field, Custom post

  • This topic has 1 reply, 2 voices, and was last updated 12 years, 8 months ago by lucaslem.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • August 21, 2013 at 8:42 pm #58109
    edharris
    Member

    I'm looking for some advice working with displaying custom post types and associated custom fields. I've been working on a simple example to play around with this: I have a custom post type called "jobs" with a custom field called "application_deadline" which contains a deadline date. Everything works great on the back end - I can create new "Jobs" with a description in the content editor and a date in the Application Deadline field. My aim is to build customized version of single.php to display individual job posts, including the custom field.

    I have created a single-job.php file which I have successfully used to force the full width layout for the job posts, and to remove post author information. My question is how to display the custom field "Application Deadline" in addition to the post content?

    The single-job.php file currently contains:

    <?php
    /**
    * Custom job post type single post template
    */

    /** Force full width content layout */
    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );

    /** Remove the author box on single posts */
    remove_action( 'genesis_after_post', 'genesis_do_author_box_single' );

    genesis();

    September 16, 2013 at 9:20 am #62830
    lucaslem
    Member

    Would love to know more about this as well...

  • 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