This publish pertains to WordPress and CIMY User Extra Fields. I don't want a understanding from the latter to assist with this particular problem, because it appears to become a WordPress problem above all else.

CIMY User Extra Fields is really a wordpress plugin that enables registered customers to possess a lot more information within their profiles. You can include as numerous fields as you would like. After this you need to edit "author.php" to drag within the new information.

I'm presently while using following code to drag within the new account fields:

<?php if (have_posts()) { $flag = true;  while (have_posts()) { the_post();
if ($flag) { $value = get_cimyFieldValue(get_the_author_ID(), 'dj-name');
if ($value != NULL) echo "<p><strong>Staff Bio: </strong>" . cimy_uef_sanitize_content($value);
echo "</p>";
$flag = false;    }}}?>

The problem is. A number of my customers have posts which code is only going to pull the additional area content for that user in the event that have 1 publish or even more. This really is because of the "if (have_posts())" function I suspect. Can there be someway to change the code to show the data even when the consumer has posts?

Thanks Zach

When not a necessity that the user should have a publish to possess CIMY values saved (that we assume), you simply don't have to look for publish-count > . You most likely have replicated that slice of code over from the publish template.

The next example just takes the worthiness, and when it's set, is going to do the output via echo:

  $authorID = get_the_author_meta('ID');
  $value = get_cimyFieldValue($authorID, 'dj-name');
  if (!empty($value))
    echo '<p><strong>Staff Bio: </strong>'
         , cimy_uef_sanitize_content($value)
         , '</p>'