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?