Skip Navigation

[Resolved] User submitted data not showing up on author profile page

This support ticket is created 6 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 1 voice.

Last updated by gavinS-2 6 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#652316

I am trying to: create a user profile page (author.php) to show the users info.

For some reason, the user data that I created using the backend shows up: hidden link

However the user created data I submitted thorugh CRED does not show up on the author page:

hidden link

The first user is an Admin, the second is an author. Not sure if that matters?

This is my author.php code:

<?php
/**
 * This example file is a part of the Types plugin online documentation found at: https://toolset.com/documentation/customizing-sites-using-php/
 * It is based on the original Twenty Sixteen theme's archive.php file.
 * It features additional code to render custom user fields created with the Types plugin.
 *
 * Please note that the names of the custom fields are for example purposes only and will not work in your site as-is. You need to edit this example according to the documentation mentioned above.
 *
 * The template for displaying custom author archive pages
 *
 *
 * @package WordPress
 * @subpackage Twenty_Sixteen
 * @since Twenty Sixteen 1.0
 */

get_header(); ?>

<div id="main-content">
	<div class="container">
		<div id="content-area" class="clearfix">
			<div id="left-area">

	
		      
				<div class = "col-sm-4">
					<?php
						echo types_render_usermeta("logo-profile-pic", array("width" => "100", "height" => "100", "align" => "center"));
					?>
				</div>

				<div class = "col-sm-8">
					<?php
						echo '<h1 class="page-title">' . get_the_author_meta("nickname") . '</h1>';
					?>
				</div>
			  
			 			
			  	
				
				<div class="col-sm-12">
					<?php
						echo types_render_usermeta("supplier-description");
					?>
				</div>
			  
			 
				
				<div class = "col-sm-3">
					<?php
						echo types_render_usermeta("picture-1", array("align" => "center"));
					?>
				</div>

				<div class = "col-sm-3">
					<?php
						echo types_render_usermeta("picture-2", array("align" => "center"));
					?>
				</div>
				
				<div class = "col-sm-3">
					<?php
						echo types_render_usermeta("picture-3", array("align" => "center"));
					?>
				</div>
			  
				
			</div> <!-- #left-area -->

		<?php get_sidebar(); ?>
		</div> <!-- #content-area -->
	</div> <!-- .container -->
	
</div> <!-- #main-content -->
<?php get_footer(); ?>

Any ideas why this is not working?

#652510

Don't worry about this. I've decided to accomplish this with a custom post type instead.