Support

Account

Home Forums Front-end Issues Author custom field not showing on archive.php page

Solved

Author custom field not showing on archive.php page

  • HI,

    I created a custom WYSIWYG Editor field called Author Bio (cf_author_bio), and set the rules to show this field group if USER is EQUAL to AUTHOR.

    BElow is code i put into my archive.php file (taht comes default with WordPress 3.8.1):

     <?php /* If this is an author archive */ } elseif (is_author()) { ?>
                <?php $author = get_userdata( get_query_var('author') );?>
                 
    				 <p class="pagetitle"><em>Author Archive for <?php echo $author->display_name;?></em></p>
                  <?php get_field('cf_author_bio'); ?>

    But it is not showing.

    I checked under the rules to see if I can show these fields if it is an archive.php file, but dont see an option to check that. Any suggestions on what I am doing wrong?

    Thanks,

    JC

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Author custom field not showing on archive.php page’ is closed to new replies.