Forum Replies Created
Viewing 5 posts - 1 through 5 (of 5 total)
-
AuthorPosts
-
mmedia
ParticipantI have also tried genesis_before_entry_content hook.
mmedia
ParticipantNo, doesn´t work anyway
add_action( 'loop_start', 'genesis_entry_header' ); function genesis_entry_header() { if ( is_singular( 'post') ) { $cf = get_post_meta( get_the_ID(), 'valoracion', true ); if( ! empty( $cf ) ) { echo '<div class="before-content">'. $cf .'</div>'; } } }It still appears over the title.
mmedia
ParticipantOk, I have tried with genesis_entry_header and it doesn´t appear under the post title:
Is the code right?
function genesis_entry_header() { echo '<div class="after-header">Add Content After Your Header Here</div>'; }; add_action('genesis_after_header', 'genesis_entry_header', 25 );mmedia
ParticipantSorry, I don´t know what do you mean with "3rd parameter of 25" or "3rd parameter of 5"
Could you share the code? I am a bit newbie with WordPress.
mmedia
ParticipantThanks Braddalton, it works but I want my custom field appear under the title of the post, before the content.
It is possible?
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)