Forum Replies Created
-
AuthorPosts
-
openmicParticipantThis is the Front end render code –
/** Returns the User_Bio to render a field in frontend */
public function render_field_frontend( $user_id = -2, $readonly = -2 ) {
if ( $user_id === -2 ) {
$user_id = get_current_user_id();
}if ( $readonly === -2 ) {
$readonly = $this->readonly;
}
$user_id = apply_filters( ‘fes_render_user_bio_user_id_frontend’, $user_id, $this->id );
$readonly = apply_filters( ‘fes_render_user_bio_readonly_frontend’, $readonly, $user_id, $this->id );
$value = $this->get_field_value_frontend( $this->save_id, $user_id, $readonly );
$required = $this->required( $readonly );
$req_class = $required ? ‘required’ : ‘rich-editor’;$output = ”;
$output .= sprintf( ‘<fieldset class=”fes-el %1s %2s %3s”>’, $this->template(), $this->name(), $this->css() );
$output .= $this->label( $readonly );
$rows = isset( $this->characteristics[‘rows’] ) ? $this->characteristics[‘rows’] : 8;
$cols = isset( $this->characteristics[‘cols’] ) ? $this->characteristics[‘cols’] : 50;
ob_start(); ?>
<div class=”fes-fields”>
<?php
if ( isset( $this->characteristics[‘rich’] ) && $this->characteristics[‘rich’] == ‘yes’ ) {
$options = array( ‘editor_height’ => $rows, ‘quicktags’ => false, ‘editor_class’ => $req_class );
wp_editor( $value, $this->name(), $options );} elseif ( isset( $this->characteristics[‘rich’] ) && $this->characteristics[‘rich’] == ‘teeny’ ) {
$options = array( ‘editor_height’ => $rows, ‘quicktags’ => false, ‘teeny’ => true, ‘editor_class’ => $req_class );
wp_editor( $value, $this->name(), $options );
} else { ?>
<textarea class=”textareafield<?php echo $this->required_class( $readonly ); ?>” id=”<?php echo $this->name(); ?>” name=”<?php echo $this->name(); ?>” data-required=”<?php echo $required; ?>” data-type=”textarea”<?php $this->required_html5( $readonly ); ?> placeholder=”<?php echo esc_attr( $this->placeholder() ); ?>” rows=”<?php echo esc_attr( $rows ); ?>” cols=”<?php echo esc_attr( $cols ); ?>”><?php echo esc_textarea( $value ) ?></textarea>
<?php } ?>
</div>
<?php
$output .= ob_get_clean();
$output .= ‘</fieldset>’;
return $output;
}
openmicParticipantThe user_bio displays on the EDD user dashboard.
openmicParticipantYes it is – usermeta = description
I initially thought that the piklist field would pick it up as Description but it isn’t
openmicParticipantThought I had it but nope
I do love working with piklist even if it takes an old dog a bit longer to get it 🙂
openmicParticipantLet me first say Sorry.
I was unaware of the fact that piklist is a labour of love, it came with the theme we are using for a large project and the professional look and feel and information of the website lead me to believe this was a full time project.
I guess once the project I am working on is handed over I should read everything and learn enough that I can help.Again Sorry for the misunderstanding.
openmicParticipantI would be happy to pay $25 a year for a pro version that I know is being supported.
I have an issue in the forum which has no response yet and I am concerned that we may need to drop piklist and go to ACF now as we are in Beta testing and I’d rather make the change now than 6 months down the line when we are fully live.
I am really enjoying piklist but reading the forum has me concerned now! -
AuthorPosts