Forum Replies Created
-
AuthorPosts
-
river-bumMember
Works like a charm, thanks Brad!
river-bumMemberPerfect, many thanks!
river-bumMemberThanks, genwrock.
That helped, but I want the excerpt to come before the entry content.
I tried this, but the meta/info is not showing up:
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); add_action( 'genesis_entry_content', 'genesis_post_info', 12 );
Here's what I'm using to insert the excerpt
add_action( 'genesis_entry_header', 'excerpt_on_post', 33 ); function excerpt_on_post() { if ( is_single() ) { echo '<div class="excerpt">'; if ( has_excerpt() ) { $my_excerpt = get_the_excerpt(); echo $my_excerpt; echo $post->post_excerpt; echo '</p></div>'; }
Thanks again!
river-bumMemberThank you, worked like a charm!
Sorry - forgot about the under construction deal.
This is a great community, really appreciate the help.
Greg
river-bumMemberIt worked!
Very grateful for the help. Thank you!
river-bumMemberThanks! Sure took me a while and some frustration to figure it out. Really appreciate your help (and I've now subscribed to WP Sites).
river-bumMemberIt works!
river-bumMemberThank you! Did I mention I'm new to this?
I realized I was approaching it a bit sideways, and figured out rather than trying to position it after the post title, which I was moving, I could also just put the custom field above the content, too.
Does this code make sense?
add_action( 'genesis_before', 'move_title' ); function move_title () { remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); add_action( 'genesis_before_content', 'genesis_do_post_title', 0 ); } add_action( 'genesis_before_content', 'custom_field_before_content', 15 ); function custom_field_before_content() { echo '<div class="after-title">'. genesis_get_custom_field('bench-location') .'</div>'; }
Thanks again. (By the way, yes, I have HTML5 enabled, but had a feeling I was doing something wrong by using an XHTML hook...)
-
AuthorPosts