• 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

Guinnessboy

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • March 6, 2018 at 6:25 pm in reply to: Add pagination in archive template #217375
    Guinnessboy
    Member

    Hi and thanks David.
    Unfortunately don't get reply notification.

    I need custom page to display CPT and custom fields created with ACF.

    https://douarnenezenvie.bzh/restaurant/

    May 2, 2017 at 7:39 am in reply to: How to remove title & editor #205761
    Guinnessboy
    Member

    Tanks Marcy.
    I'll try these 2 plugins.

    April 4, 2017 at 6:59 am in reply to: How to create my own single-(post-type).php files ? #204269
    Guinnessboy
    Member

    Thanks Brad. I'll will check that.
    I'm on the right way with.
    But still a lot of work.

    March 31, 2017 at 9:40 am in reply to: How to create my own single-(post-type).php files ? #204118
    Guinnessboy
    Member

    Thx Brad,

    the_field is a function to get. You mean that i can get the same result using get_post_meta('act_field_name') ? ACF data are stored in the post-meta table ?

    I don't know how i can remove the date and author under the title.
    I tried to remove genesis_entry_header with no effects.

    March 31, 2017 at 3:57 am in reply to: Genesis child theme using ACF #204103
    Guinnessboy
    Member

    Ok thanks.

    March 30, 2017 at 9:12 am in reply to: How to create my own single-(post-type).php files ? #204058
    Guinnessboy
    Member

    I think i get it.
    Many thanks guys.

    The result

    
    //* Add  custom content
    add_action( 'genesis_entry_content', 'restaurant_entry_content' );
    function restaurant_entry_content() {
    	?>
    <div id="resto-content">
    <p><?php the_field('resto-adresse'); ?></p>
    <img src="<?php the_field('resto-logo'); ?>" alt="" />
    </div>
    	<?php
    }
    

    Now at work.

    Best regards,

    March 30, 2017 at 8:30 am in reply to: How to create my own single-(post-type).php files ? #204057
    Guinnessboy
    Member

    Thanks Victor. I have to read all hook contents tutorials.
    I'm not familiar with this.
    I'll certainly be back later. 😉

    March 30, 2017 at 6:07 am in reply to: How to create my own single-(post-type).php files ? #204047
    Guinnessboy
    Member

    Many thanks,

    It's getting better. fields are displayed not exactly at the right place. 🙂
    I still miss something.

    The problem

    my single-restaurant.php file content

    
    add_filter( 'body_class', 'single_posts_body_class' );
    function single_posts_body_class( $classes ) {
       $classes[] = 'custom-restaurant';
       return $classes;   
    }
    add_filter( 'genesis_site_layout', '__genesis_return_content_sidebar' );
    remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
    ?>
    
    <div id="resto-content">
    <p><?php the_field('resto-adresse'); ?></p>
    <img src="<?php the_field('resto-logo'); ?>" alt="" />
    </div>
    
    <?php
    add_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );	
    genesis();
    
    March 30, 2017 at 5:10 am in reply to: How to create my own single-(post-type).php files ? #204039
    Guinnessboy
    Member

    Hi Brad and thanks,

    I'm ok with WP template hierarchy and CPT.

    I don't know how to paste my code. Before the genesis() function ?

    //* Remove site footer widgets
    remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
    
    //* MY CODE HERE ????
    
    //* Run the Genesis loop
    genesis();
    
  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)

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