Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter wijgaanhetregelen

    (@wijgaanhetregelen)

    after some searching i found

    add_filter(‘the_content’, ‘do_shortcode’)

    i added this to wp-events/wp-events-functions.php

    now it works but it shows [events_show type=”today” /]
    after every used shortcode within wp-events messages.

    Thread Starter wijgaanhetregelen

    (@wijgaanhetregelen)

    it is fixed with

    add_filter(‘the_content’, ‘do_shortcode’)

    ty

    Bill

    (@jaimegoldinggmxcom)

    Hi, where did you put the add_filter(‘the_content’, ‘do_shortcode’) ?
    could you post the section please?

    my shortcodes are like this but I can’t get them to work in Events:

    function austria() {
            return '<img class="nationality" src="http://www.lotrdc.com/wp-content/uploads/austria.jpg">';
        }
        add_shortcode('au', 'austria');
    function belgium() {
            return '<img class="nationality" src="http://www.lotrdc.com/wp-content/uploads/belgium.jpg">';
        }
        add_shortcode('be', 'belgium');

    🙂

    Bill

    (@jaimegoldinggmxcom)

    hmm, i’ve got the shortcodes to work but it’s bodged my WP-UI accordion…

    Bill

    (@jaimegoldinggmxcom)

    Problem solved, using this instead:

    add_filter(‘the_content’, ‘do_shortcode’, 99);

    the 99 is for the priority – by making a high number it adds the shortcodes after everything else on the page so avoids the conflicts with plugins

    😀

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Usage of shortcodes within wp-events messages?’ is closed to new replies.