Forum Replies Created
-
AuthorPosts
-
duellingpixels
ParticipantOk,
I have managed to resolve the output processing with the following code:
$author_id = get_the_author_meta(‘ID’);
$author_badge = get_field(‘your_field_name’, ‘user_’. $author_id );?><div class=”entry” > <?php echo do_shortcode( $author_badge ); ?> </div> <?php
However, the shortcode doesn’t seem to process the shortcode arguments correctly. To confirm the organiser argument should be used like [tribe_events_list organizer=”#10203″ limit=”2″] ? .
Cheers,
Nick
duellingpixels
ParticipantHi Brook,
Thanks for getting back to me.
Yes, I have tried using the default the_feild of the field with no success of any output, and also the if(get_the … method as well.
The line so of code I have tried in the template are:
the_field( ‘event_organizer_shortcode’, ‘user_’. $author_id );
or
if( get_field(‘event_organizer_shortcode’, ‘user_’. $author_id )):
the_field(‘event_organizer_shortcode’, ‘user_’. $author_id );
endif;or
do_shortcode(the_field(‘event_organizer_shortcode’, ‘user_’. $author_id ));
or
apply_filters(‘the_content’, get_post_meta($author_id->ID, ‘event_organizer_shortcode’, true));
do_shortcode( the_field(‘event_organizer_shortcode’, ‘user_’. $author_id ) ) );
Further up the template I am using the_field(‘author_description’, ‘user_’. $author_id ); which does generate an output for that field. Add to the fact when using a shortcode [tribe_events_list] in the user Biographical Info which also does not generate a output, just the straight shortcode it just shown on the front end.Link
I wonder if the Tribe shortcodes are being processed at all on user profile page, I could understand why they wouldn’t.
Any thoughts?
Cheers,
Nick
-
AuthorPosts
