• Resolved laurasw

    (@laurasw)


    In an event listing, the main event content outputs nicely in html. In the other parts on the page and also on the individual venue or organiser posts (Organiser and Venue) it strips the php in the short description field as is using for example, on the content-single-event_listing-venue.php the following call –

    <div class="wpem-venue-short-info"><?php printf( __('%s', 'wp-event-manager'), get_venue_description($venue_id) ); ?></div>

    Only site admins will be adding data to the site, so it’s not a risk to have full html or even basic html though.
    How do I override for both Organisers and Venues display to full html output; or how do I change the above code or do I need to add something to my functions file to allow html elements such as
    <br>,<em>,<i>,<ul>,<ol>,<li>,<a>,<p>,<img>,<h3>,<hr> etc.

    Thanks ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter laurasw

    (@laurasw)

    Has anyone else overcome this?
    I did use ACF to add another field which displays fine on the venue or organiser individual posts, but not been able to add to work fully in the event page which shows the accordions for venue and organiser as have lots of venues and organisers and would have to set a post ID for each which is not feasible and the plugin (which is great apart from this niggly bit!) forms it’s own id format for venues/organizers. Any ideas welcomed!

    Hitesh Makvana

    (@hiteshmakvana)

    Hi @laurasw

    Sorry for the late response due to the Diwali holidays here. If you want to display organizer description as per your need or same as added from backend then you can simply override the template file and change the following code

    <?php printf( __('%s', 'wp-event-manager'), get_organizer_description($organizer_id) ); ?>
    to

    <?php echo get_the_content('',false,$organizer_id); ?>

    Thank you

    Thread Starter laurasw

    (@laurasw)

    Happy Diwali wishes to you! I had wondered if that was why!
    Thank you so much for the reply, I will give this a go shortly.
    Many thanks!

    Priya Goenka

    (@priyagoenka)

    It has been our pleasure to help you. We value your opinion, could you be willing to take a few minutes to leave us a review?

    You can click this link to leave us a review: https://www.ads-software.com/support/plugin/wp-event-manager/reviews/.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change output of Venue and Organiser Description to include html’ is closed to new replies.