• Resolved Morgan Grip

    (@morganmmg)


    Is it possible to show author in event list?
    I have multiple authors and i would like the author name to be visible in the event list on their published event. Than its verry easy for the website visitor to se which author that is hosting the event.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Guido

    (@guido07111975)

    Ho Morgen,

    Can add this in next version. Do you want it at every page, including the single event page? Cannot make the author name linkable with native get_author_posts_url() function because only native posts are being returned. So no events (because it’s a custom post type).

    Guido

    Thread Starter Morgan Grip

    (@morganmmg)

    Hi Guido,

    I would like the possibility to show it at listings as well as in every single event page and it does not have to be linkable. It’s just to show the web visitor who is the organizer for an event.

    Plugin Author Guido

    (@guido07111975)

    Hi Morgan,

    If you want to add author now and you have some coding knowledge, you can consider adding this code in files vsel-page-template and and vsel-template-support:

    
    // author
    $output .= '<div class="vsel-meta-author">';
    $output .= esc_attr__( 'Organiser', 'very-simple-event-list' ).': '.get_the_author();
    $output .= '</div>';
    
    

    Guido

    Thread Starter Morgan Grip

    (@morganmmg)

    Thanks,
    Do you have an example where in the files to insert the code?

    Plugin Author Guido

    (@guido07111975)

    Where do you want this info, underneath or above which value?

    Guido

    Thread Starter Morgan Grip

    (@morganmmg)

    Hi Guido,

    I managed to solve it. Thanks.
    https://sveg.se/evenemangskalender/

    Plugin Author Guido

    (@guido07111975)

    Hi,

    Great, looks good!

    Your margin-top is overriden by the default margin. Please try this instead:

    
    .vsel-meta > div.vsel-meta-author {margin-top:16px;}
    

    Guido

    Plugin Author Guido

    (@guido07111975)

    Hi @morganmmg / Morgan

    I need to update plugin because of a fix, but will not add your request yet. Still thinking about the best way to do this. Normally I advice users to use the Advanced Custom Fields for custom fields.

    Guido

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Show Author in Event List’ is closed to new replies.