WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WordPress Event Calendar] Can’t set time zone.

[Plugin: WordPress Event Calendar] Can’t set time zone.

Viewing 2 replies - 1 through 2 (of 2 total)
  • My WP install is also not in the root directory and I could not get this plug-in to run at all until I edited the locale/timezone in my User profile. It completely ignored the timezone I set in Settings/Events.

    Maybe this code will help for display the time
    <?php $queryObject->startTime(get_option('time_format'));?>

    Now, to make the plugin to display the list of events you need a code like this:

    <?php
    //Replace calendarID value with the Calendar Category ID number you would like to display. In my case "2".
    $queryObject = new WEC_Query('calendarID=2');
    //Start the loop
    while($queryObject->haveEvents()): $queryObject->the_event(); ?>
    
    <strong><?php $queryObject->eventTitle(); ?></strong><br /><br />
    <strong>Fecha:</strong>&nbsp;<?php $queryObject->theDate(get_option('date_format'));?><br />
    <strong>Hora:</strong>&nbsp;<?php $queryObject->startTime(get_option('time_format'));?><br /><br />
    <?php $queryObject->eventExcerpt (); ?>
    
    <?php
    //End the loop
    endwhile; ?>

    I kind of formatted how it will present the data but you can format it your own way. In other words, you can grab the line <?php $queryObject->eventTitle(); ?> and wrap it with <i> </i> if you would like to make the title show in italics. You can format the other tags as well.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WordPress Event Calendar] Can’t set time zone.’ is closed to new replies.
Skip to toolbar