Adding author to single event?

Home Forums Calendar Products Events Calendar PRO Adding author to single event?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #860826
    bizdoktor
    Participant

    Hi.
    Ref: https://tri.be/support/forums/topic/add-author-section-to-screen-options-for-venues-and-organizers/#post-124353
    In the above topic Joe controls author for venues and so… But i’ll want to take it a step back… How can I add Author on a single event view. (Can someone help me edit the snippet?)
    Thanks

    Purpose is to show both the author and the event organizer (might be different (maybe add a check if same user – skip author?) if not to complicated?
    Thx
    have a great “event” – day 🙂

    #860841
    bizdoktor
    Participant

    Just to be clear:
    I want the Author name to show and a link to their author profile
    OR
    Show the author info box – like on a blog post
    (I plan to use the Simple Author box https://wordpress.org/plugins/simple-author-box/ )
    In advance: THX

    #860899
    Geoff
    Member

    Hi there, Peter! Nice to see you again. 🙂

    The nice thing is that Events posts already support the default Author functionality provided by WordPress. That means you can override the template where you would like to display the Author and use the following in the template:

    <?php $author = get_the_author(); ?>

    While this sort of customization is certainly possible, we’ll leave it to you to make it happen. You can check out our Themer’s Guide for more information on overriding templates (including a full list of available templates to override). The WordPress Codex has more information on using the get_the_author() function.

    I hope this helps!

    Geoff

    #892244
    Geoff
    Member

    Hey there, Peter! It’s been a while so I’m going to go ahead and close this thread. If we can help with anything else, though, please don’t hesitate to open a new thread. We’d be happy to help. 🙂

    Cheers!
    Geoff

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Adding author to single event?’ is closed to new replies.