• kiadri

    (@kiadri)


    Hi,

    I am using Author Avatar to display a list of all freelancing users on my website so that they can be contacted by clients. I used Cimy User Extra Fields to add necessary fields to the profile. The fields show up on the profile but not on the actual author profile page on the website. What am I doing wrong and what do I need to add to the template to make them show up on the author page? It did not seem to be covered in Marco’s documentation or FAQ.

    The link to the list of users is here: https://editorswa.com/?page_id=208 and the link to one of the author profile pages is here: https://editorswa.com/?author=1

    Please help! Especially if it involves PHP because I am way out of my comfort zone here.

    Thanks, Marisa.

Viewing 2 replies - 16 through 17 (of 17 total)
  • I’m now having a similar issue, but I feel like I’m including the code you’re suggesting…

    <?php
    
    //initializing variables
    global $wp_query;
    $query_vars = $wp_query->query_vars;
    
    //loading resources
    $curauth = get_userdatabylogin($query_vars['author_name']);
    $values = get_cimyFieldValue($curauth->ID, 'POSITION');
    $content = cimy_uef_sanitize_content($values);
    ?>
    <?php get_header(); ?>
    <div id="leftColumn">
    	<img src="<?php bloginfo('template_url'); ?>/images/content_top_shadow.png" width="607" height="10" class="content_tb_shadow" />
    	<div id="contentBackground">
    		<div id="contentAuthor">
    			<div id="contentTitleAuthor">
    				<h1><?php echo $curauth->first_name.' '.$curauth->last_name; ?></h1>
    				<div id="jobTitle">
    					<?php echo $content; ?>
    				</div>
    				<div id="email">| <?php echo $curauth->user_email; ?></div>
    				<br />
    			</div>
    				<div id="postContents">
    					<?php echo get_avatar( $curauth->ID, 350 ); ?>
    					<div id="postList">
    						<ul>
    						<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    							<li><?php the_time('m/j/Y') ?> - <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?> "><?php the_title(); ?></a></li>
    						<?php endwhile; else: ?>
    							<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    						<?php endif; ?>
    						</ul>
    					</div>
    					<img class="authorBar" src="<?php bloginfo('template_url'); ?>/images/footer_bar.png" />
    					<p><?php echo $curauth->user_description; ?></p>
    					<img class="authorBar" src="<?php bloginfo('template_url'); ?>/images/footer_bar.png" />
    				</div>
    			</div>
    		</div>
    		<img src="<?php bloginfo('template_url'); ?>/images/content_bottom_shadow.png" class="content_tb_shadow" />
    	</div>
    	<!-- END COMMENTS | START SIDEBAR -->
    
    	<?php include (TEMPLATEPATH . '/sidebar-blog.php'); ?>
    </div>
    
    <!-- END SIDEBAR | START FOOTER -->
    <?php get_footer(); ?>

    It’s not showing up as you can see on this page…

    https://blog.zuberance.com/blog/author/cara-fuggetta/

    Any ideas? Thanks.

    I have a problem to display the fields and I think maybe you can help me.

    Each author fills in their respective fields (as the name TEST), but the end result in “author.php” always the same that “user 1”, how the result should be different because each author has put a corresponding value on the field TEST in your profile page.

    Here attached the code:

    <?php
    $values = get_cimyFieldValue($author_id, false);
    foreach ($values as $value) {
       $values_by_name[$value['TEST']] = cimy_uef_sanitize_content($value['VALUE']);
    }
    echo cimy_uef_sanitize_content($value);
    ?>

    Excuse for my english…
    Best regards,

    David

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘[Plugin: Cimy User Extra Fields] fields not showing up on author profile page’ is closed to new replies.