Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,

    Your WP theme should add/show post author, not calendar, so it would be best to contact the author of your theme or try adding this code in single.php file in your WP theme where you want to display the author name:

    <?php the_author() ?>

    Thanks,
    Ben

    Thread Starter illaniel

    (@illaniel)

    Hi Ben,
    Thanks for your answer.
    In my theme there is some data from table usermeta. And now I show this for visitors of web-site in the page of event. But how to request this data to twig-file for show this data in calendar?

    I tried to make switch-on for -“show author under title” or “show author box”, but this not makes any changes for view of calendar.
    I need to show author’s first and last names between title and date and time of this event.

    Thanks,
    Olga

    Hi Olga,

    The Event Post is created as a custom post in WordPress, and uses the default WP theme single post template -> single.php, so no need to edit twig files. Please read the following guide: http://time.ly/document/user-guide/customize-calendar/customize-event-details-page/

    Thread Starter illaniel

    (@illaniel)

    Hi Ben,
    No, I mean other deed. I need to add showing author’s name in template of calendar.
    For example in agenda.twig I need to post inside <div class=”ai1ec-event-header”></div> title, author’s name and time.

    Now I have only:`
    {{ event.filtered_title | raw }}
    {{ event.timespan_short | raw }}`

    I tried some code like
    {{ event.author | raw }}
    but this is and the same (event.the_author, event.post_author and other) like this not works… I think I need to add constant “author” for use in twig-file. But I not found any file with this…

    Or any other way for fix my needs?

    Thanx,
    Olga

    Hi Olga,

    Your inquiry requires changes in the code, which unfortunately we cannot help with as part of our support. We’ll keep this topic open for a few days for other user to chime in if possible.
    Thanks for your understanding.

    Ben

    Thread Starter illaniel

    (@illaniel)

    Hi Ben!
    Ok. if I can’t show author in the theme of calendar, tell me how to use filter by author? Changelog includes news that this is posible.

    Hi Olga,

    This means that it is possible to filter events by author in the backend, not on the calendar.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘how do add author to calendar?’ is closed to new replies.