WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WordPress Event Calendar] Can't set time zone. (3 posts)

  1. marcfuller
    Member
    Posted 4 years ago #

    Clicking on the link to set time zone returns a 404. I would guess that this is because my WP install is not in the root directory (it is in /wp). Which file, and what piece of code may I edit to correct this?

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

  2. kchayka
    Member
    Posted 4 years ago #

    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.

  3. edgarsso
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic