Add User Descriptions for Account form
-
Hello. In the author-content.php file there is code: <?php echo esc_html($author->description); ?> But there is no User Descriptions field in the account editing form! I needed this field, how can I add it?
I added the code to the form:
<div class="rtcl-form-group">
<label for="rtcl-description" class="rtcl-field-label">
<?php esc_html_e( 'User Description', 'classified-listing' ); ?>
</label>
<div class="rtcl-field-col">
<textarea name="description" id="rtcl-description" class="rtcl-form-control"><?php echo esc_textarea( get_user_meta( $user->ID, 'description', true ) ); ?></textarea>
</div>
</div>But the text that I enter into this field is not saved when I click update account and does not appear on the ad owner page.
If I enter text directly through the admin panel into the user’s profile, it is displayed. how to fix it?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.