Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Event Calendar 3 WordPress

  • SOLVED

hi, i´m trying to use this code to show the Event Calendar DAY on [[LINK href="http://fdmed.org/category/agenda/"]]http://fdmed.org/category/agenda/[[/LINK]]

<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div style="float:left;"><h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
<span class="linetwo"><strong><?php ec3_get_schedule('%s; ','%1$s %3$s %2$s. ','[ %s] '); ?></strong> <br><?php the_content_rss('', FALSE, '', 50); ?><br><br><?php if( get('lugar')) { echo "".__('Ubicació:','newsplus').""; } ?> <?php echo get_post_meta($post->ID, 'lugar', $single=true) ?><br><?php if( get('organizador')) { echo "".__('Organitzador:','newsplus').""; } ?> <?php echo get_post_meta($post->ID, 'organizador', $single=true) ?><br><?php if( get('enlace_mas_informacion')) { echo "".__('Més informació:','newsplus').""; } ?> <a href="<?php echo get_post_meta($post->ID, 'enlace_mas_informacion', $single=true) ?>"><?php echo get_post_meta($post->ID, 'tipo_enlace', $single=true) ?></a></span><br><br></div>
<?php endwhile; ?>


but I can´t show the date... :( should i call the function or something?


http://wpcal.firetree.net/

Answers (4)

2011-05-11

Just Me answers:

use <?php echo ec3_get_scheduler()....

2011-05-11

Julian Lannigan answers:

The reason it is not displaying is because you are using the "ec3_get_scheduler" function. This function only returns content, it does not output it to the client. You should use either one of the following:

<?php echo ec3_get_scheduler() (Just Me already suggested this option) or
<?php ec3_the_scheduler()

2011-05-11

Kristin Falkner answers:

You need to use the ec3_the_schedule() function to print it out.

From their documentation:

<strong>ec3_get_schedule()</strong>
Formats the schedule for the current post. Returns the HTML fragment as a string.<em> If you want to echo the result directly onto the page, then just call ec3_the_schedule().</em>

2011-05-12

Guillermo Sornoza answers:

Well. you should echo the resulting HTML.

<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

<div style="float:left;"><h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>

<span class="linetwo"><?php echo ec3_get_schedule('%s; ','%1$s %3$s %2$s. ','[ %s] '); ?> <br><?php the_content_rss('', FALSE, '', 50); ?><br><br><?php if( get('lugar')) { echo "".__('Ubicació:','newsplus').""; } ?> <?php echo get_post_meta($post->ID, 'lugar', $single=true) ?><br><?php if( get('organizador')) { echo "".__('Organitzador:','newsplus').""; } ?> <?php echo get_post_meta($post->ID, 'organizador', $single=true) ?><br><?php if( get('enlace_mas_informacion')) { echo "".__('Més informació:','newsplus').""; } ?> <a href="<?php echo get_post_meta($post->ID, 'enlace_mas_informacion', $single=true) ?>"><?php echo get_post_meta($post->ID, 'tipo_enlace', $single=true) ?></a></span><br><br></div>

<?php endwhile; ?>