include author details in post headers
-
Hi,
I am not a developer (unfortunately) but I was able on a P2 theme that I do not want to use anymore cause it is not responsive on Android, to display authors’ custom info on each post header.
Moving back to Twenty Twelve, in which theme file and where should I paste this piece of code that used to work so that all post headers contain the Company name and phone number of the user in addition to his nickname?
——–
‘
<?php if ( ! is_page() ): ?>
” title=”<?php echo esc_attr( $posts_by_title ); ?>”><?php the_author(); ?>
<?php echo get_user_meta( get_the_author_meta(“ID”), ‘company_name’, true ); ?>
<?php echo get_user_meta( get_the_author_meta(“ID”), ‘phone’, true ); ?>
<?php endif; ?>‘
———Thank you so much!
julien
- The topic ‘include author details in post headers’ is closed to new replies.