Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Insert data from other source #8707
    openmic
    Participant

    This 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;
    }

    in reply to: Insert data from other source #8706
    openmic
    Participant

    The user_bio displays on the EDD user dashboard.

    in reply to: Insert data from other source #8703
    openmic
    Participant

    Yes it is – usermeta = description
    I initially thought that the piklist field would pick it up as Description but it isn’t

    in reply to: Insert data from other source #8696
    openmic
    Participant

    Thought I had it but nope
    I do love working with piklist even if it takes an old dog a bit longer to get it 🙂

    in reply to: Not impressed with forum assistance. #8022
    openmic
    Participant

    Let 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.

    in reply to: Paid version #7991
    openmic
    Participant

    I 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!

Viewing 6 posts - 1 through 6 (of 6 total)