WordPress.org

Ready to get started?Download WordPress

Forums

Event Organiser
Shortcode Does Not Display (5 posts)

  1. cjones2989
    Member
    Posted 2 years ago #

    Hello. I'm trying to use the shortcode for the [eo_fullcalendar] option. It will display when I apply this to a page. I want to apply it within the template's introduction.php section of my website. When I use this shortcode it only displays the actual code itself.

    http://wordpress.org/extend/plugins/event-organiser/

  2. Stephen Harris
    Member
    Plugin Author

    Posted 2 years ago #

    If you are using the shortcode in a template file then you need to use do_shortcode. For example:

    echo do_shortcode('[eo_fullcalendar]');

  3. cjones2989
    Member
    Posted 2 years ago #

    That didn't work. I'm actually trying to input the full calendar code in the introduction.php within the template I am using. It displays text but I have been able to get images to display using image URL/html parameters.

    Sorry for my ignorance but I'm not good with code. I wasn't sure if there was a <?php...or some similar HTML way of displaying the full calendar?

  4. Stephen Harris
    Member
    Plugin Author

    Posted 2 years ago #

    <?php echo do_shortcode('[eo_fullcalendar]'); ?>
    ... works for me.

    > I'm actually trying to input the full calendar code in the introduction.php

    Do you mean you're trying to copy the class method into your template? That won't work - the shortcode class handles all the javascript and css that is required for the calendar.

    What images are you referring to...? There are no images in the calendar.

  5. cjones2989
    Member
    Posted 2 years ago #

    That code actually worked! I guess my next question would be, can I make the full calender smaller/compressed or just change my extension to [eo_calendar]?

    The images I meant earlier were HTML linked personal images for the site.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic