• 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 Single Post 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 Single Post template

This topic is: not resolved

Tagged: genesis content mixed with HTML template

  • This topic has 1 reply, 1 voice, and was last updated 13 years, 9 months ago by stephencounsell.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • February 5, 2013 at 12:50 pm #18261
    stephencounsell
    Member

    Hi,

    I've been trying to learn how to create a custom post template all day and failed to "get it" !

    I've creates a theme based on the Simple Theme example which now seems like a real mistake as it does not have some of the basics i usually see in the other fully worked themes.

    Anyway, I am really frustrated now and am asking for help with this. It seems simple but it's just not working for me.

    Here's what I want to do.

    Normal posts display with the standard layout of a single post (content / sidebar)

    Posts in a category of "Associates" have a specific design layout (template) that pulls the basic info and custom field from the post data.

    Are there any really simple examples I can get a look at?

    Thanks in advance for any help.

    Steve

     

    February 5, 2013 at 1:58 pm #18290
    stephencounsell
    Member

    Here's what I have so far.

    In my functions.php file I have:

    function single_associate_template() {
    return the_content();
    }

    In my single.php file I have:

    if( is_single() && in_category ( 'associate' ) ) {
    remove_action( 'genesis_after_sidebar_widget_area', 'sidebar_two' );
    remove_action( 'genesis_after_content', 'genesis_get_sidebar' );
    remove_action( 'genesis_post_content', 'genesis_do_post_content' );
    add_action( 'genesis_post_content', 'single_associate_template' );
    }

    genesis();

    My test URL for this is:

    http://1063991394.1055256391.temp.prositehosting.co.uk/associate-1-test/

    How can I manipulate the content and other custom fields and mix them in with standard HTML?

     

  • 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