Forum Replies Created
-
AuthorPosts
-
Guinnessboy
MemberHi and thanks David.
Unfortunately don't get reply notification.I need custom page to display CPT and custom fields created with ACF.
Guinnessboy
MemberTanks Marcy.
I'll try these 2 plugins.Guinnessboy
MemberThanks Brad. I'll will check that.
I'm on the right way with.
But still a lot of work.Guinnessboy
MemberThx 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.Guinnessboy
MemberOk thanks.
Guinnessboy
MemberI think i get it.
Many thanks guys.//* 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,
Guinnessboy
MemberThanks Victor. I have to read all hook contents tutorials.
I'm not familiar with this.
I'll certainly be back later. 😉Guinnessboy
MemberMany thanks,
It's getting better. fields are displayed not exactly at the right place. 🙂
I still miss something.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();
Guinnessboy
MemberHi 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();
-
AuthorPosts