Home › Forums › Support › Display post meta in sections This topic has 19 replies, 4 voices, and was last updated 5 years, 11 months ago by Tom. Viewing 5 posts - 16 through 20 (of 20 total) ← 1 2 Author Posts May 2, 2018 at 9:10 am #565611 TomLead Developer Lead Developer Hmm, so it’s not picking up the author name. How are you applying this? Manually within Sections? Can you show me a screenshot? I’m just wondering if there’s an alternate route we can use. May 2, 2018 at 9:34 am #565645 Martin Just manually within sections. I have one section that simply contains content and I have the shortcode at the beginning. So, it goes something like: [entry_meta] <h2 class="resources">Hello and welcome!</h2> May 2, 2018 at 9:34 pm #566098 TomLead Developer Lead Developer Try this instead: add_shortcode( 'entry_meta', 'tu_entry_meta_shortcode' ); function tu_entry_meta_shortcode() { if ( ! function_exists( 'generate_posted_on' ) ) { return; } ob_start(); $post = get_post(); setup_postdata($post); ?> <div class="entry-meta"> <?php generate_posted_on(); ?> </div><!-- .entry-meta --> <?php $ret = ob_get_contents(); ob_end_clean(); return $ret; } May 3, 2018 at 11:23 am #566689 Martin That got it! Thank you! May 3, 2018 at 3:04 pm #566844 TomLead Developer Lead Developer No problem 🙂 Author Posts Viewing 5 posts - 16 through 20 (of 20 total) ← 1 2 You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In