urbanty
Forum Replies Created
-
Forum: Plugins
In reply to: [User Avatar] [Plugin: User Avatar] Avatar not displaying on Author PageHi flashpunk,
did you solve your problem? I am stuck with the same problem.
Cheers.
Please resolve this bug.
Thanks! ??
Forum: Plugins
In reply to: [WP Geo] [Plugin: WP Geo] How to? Show world map of all my postsI found a tutorial here, although obviously it needs to be hard-coded into a template file.
https://www.wpgeo.com/archives/558#more-558I figured it out.
For anyone interested, it works like this:<?php $user_id = $curauth->ID; $key = 'people_lists_XXX'; $single = true; $the_field_i_want_to_display = get_user_meta( $user_id, $key, $single ); echo '<p><em>'. $the_field_i_want_to_display . '</em></p>'; ?>
The “XXX” in people_lists_XXX is of course the name of your custom field.
Forum: Themes and Templates
In reply to: Author posts on separate page than bio?Anyone?
Sorry for bumping. ??Hm, maybe I didn’t fully understand the concept of the author.php file, but it doesn’t call for the loop at all. And displaying all other user meta data works fine.
I’m using$curauth->something;
and also<?php $user_id = $curauth->ID; $key = 'some_field'; $single = true; $the_info_i_want = get_user_meta( $user_id, $key, $single ); echo '<p><em>'. $the_info_i_want . '</em></p>'; ?>
Both work just fine. Isn’t the avatar also just some kind of user meta data and hence it should be possible to call it outside the loop?
Hey Dawn, thanks for you reply. For some reason that doesn’t seem to work.
Based on your code, I modified it like this (but your original code unfortunately also didn’t work):
<?php echo get_avatar( get_the_author_meta($curauth->ID), '100' ); ?>
Could it be a problem that I’m trying to display the avatar outside the loop?Sorry for bumping, but anyone have an idea?
Thanks! ??Works after the update. Thanks a lot!
I have the same issue.
Hey yani,
thanks so much for your effort! Works perfectly! ??
Hm, okay. But then getting back to my original problem, how can I add to the single-ai1ec_event.php file e.g. the title and link of the current event’s event-category?
Hi yani.iliev,
that’s great! Thanks a lot!
One more thing though: In the event-single.php file in the directory
/all-in-one-event-calendar/app/view/event-single.php
I found something like<a class="ai1ec-button ai1ec-calendar-link" href="<?php echo $calendar_url ?>"> <?php _e( 'Back to Calendar ?', AI1EC_PLUGIN_NAME ) ?> </a>
Is it possible to use stuff from this script in the single-ai1ec_event.php file?
Many thanks! ??
How does that work? ??
Alternatively: Is there a way to re-route the single event pages to use a different template file? Something like single-calendar.php?