Joelle

Forum Replies Created

Viewing 6 posts - 31 through 36 (of 36 total)
  • Author
    Posts
  • in reply to: Changing the Single Event Page Layout #1117493
    Joelle
    Participant

    Sure thing. I’m not a php wizard, I’m really just doing my best. 🙂

    <?php if ( custom_field_by_label('Instructor') ) : ?>
    		<div class="tribe-events-instructor"><strong>Instructor:</strong> <?php echo custom_field_by_label('Instructor'); ?></div>
    		<?php endif; ?>
    in reply to: Changing the Single Event Page Layout #1117489
    Joelle
    Participant

    I did, it gives me a fatal error:

    Fatal error: Call to undefined function get_custom_field_by_label() in /home/knitagog/public_html/stage/wp-content/themes/fibrespacesixteen/tribe-events/single-event.php on line 51

    in reply to: Changing the Single Event Page Layout #1117327
    Joelle
    Participant

    Hi Cliff!

    I want to show just one of my additional fields, not the full array, which is what happens with tribe_get_custom_fields.

    The deprecated snippet actually does what I want. I’m not understood on why they deprecated it without offering a comparable solution to displaying a single custom field.

    I hope that makes it clearer. 🙂 thank you for responding!

    in reply to: Changing the Single Event Page Layout #1117300
    Joelle
    Participant

    Well, I guess a “nevermind” is in order because it looks like you don’t offer assistance with this per this thread. 🙁

    I don’t understand why it tribe_get_custom_field was deprecated, it does *exactly* what I need it to do, but with your other method, it seems a lot more complicated to pull out one simple field.

    So there’s no straightforward tip for how to get it to display just ONE field instead of the whole array despite it being available before?

    Thanks. 🙂

    in reply to: Changing the Single Event Page Layout #1117278
    Joelle
    Participant

    Hello again. 🙂

    I’m hoping someone can assist me in pulling out individual additional fields. I have two separate ones and I’d like to display them in separate places on the page. I know which files to edit, with the Themers Guide, but I’m unclear how to determine the extra fields I need based on this from the /srcs/views/pro/modules/meta/additional-fields.php file.

    `<div class=”tribe-events-meta-group tribe-events-meta-group-other”>

    <?php esc_html_e( ‘Other’, ‘tribe-events-calendar-pro’ ) ?>

    <dl>
    <?php foreach ( $fields as $name => $value ): ?>
    <dt> <?php echo esc_html( $name ); ?> </dt>
    <dd class=”tribe-meta-value”>
    <?php
    // This can hold HTML. The values are cleansed upstream
    echo $value;
    ?>
    </dd>
    <?php endforeach ?>
    </dl>
    </div>

    I really appreciate your assistance here. Thank you!

    in reply to: Changing the Single Event Page Layout #1117270
    Joelle
    Participant

    Derp, I found this, naturally. The obvious source of information. 🙂 I’m hoping this is what I need.

Viewing 6 posts - 31 through 36 (of 36 total)