[EventCalendar] : custom fields conflict with ec3_get_schedule
dgarlitz at wesleyan.edu
Sun Feb 1 16:56:21 UTC 2009
Hi Alex - through trial and error I found that this was only occurring
on the home page, where I have some other unusual queries, I was able
to fix the problem by removing the line:
$wp_query->in_the_loop = true;
from one of my earlier post queries. I had included that line to make
the pagination work a certain way, so I'd like to be able to put it
back in, I think. Any idea why that would make the difference?
Also, re iconlets, I noticed something else that is rather strange :
when I elect to include the iconlets in my posts, the post called by
the query in question displays correctly EXCEPT that the categories
are not correct. Weird...
But nothing urgent - I am content to let the site run as is for the
moment. Let me know if you do figure out why that was happening.
On Jan 29, 2009, at 7:29 PM, Alex Tingle wrote:
> Hi David,
> Hmm. That will take me a while to investigate - I've flagged your
> mail so that
> I don't forget it.
> Do you get the same problem with iconlets?
> David Garlitz wrote:
>> Hi - I've got a loop where I call some events, and I include custom
>> field information along with ec3_get_schedule. Code looks like this:
>>> <?php $my_query = new
>>> while ($my_query->have_posts()) : $my_query->the_post(); ?>
>>> <div class="event" id="post-<?php the_ID(); ?>">
>>> <div class="posttitle">
>>> <h2><a href="<?php the_permalink() ?>"
>>> rel="bookmark" title="<?php _e('Permanent Link to','MistyLook'); ?>
>>> <?php the_title(); ?>"><?php the_title(); ?></a></h2>
>>> <h3><?php $subtitle = get_post_meta
>>> ($post->ID, 'subtitle', $single = true);
>>> if($subtitle !== '') echo apply_filters( 'the_title', $subtitle );
>>> <p class="post-info"><?php echo
>>> ec3_get_schedule('%s ','%1$s %3$s %2$s. ','%s '); ?><?php $info =
>>> ($post->ID, 'info', $single = true);
>>> if($info !== '') echo apply_filters( 'the_title', $info ) . '<br/
>>> <?php endwhile; ?>
>> If I remove the line "<?php echo ec3_get_schedule(...etc.?>," the
>> fields appear as expected. Also, if I move that line to AFTER the
>> field stuff in the loop, the custom fields display as well, so it
>> appears that ec3_get_schedule is interfering with my custom field
>> - any ideas on how to fix this?
>> Here's the URL : http://ecolekoenig.com/?theme=koenig
>> Blog: http://wpcal.firetree.net/
>> EventCalendar at firetree.net mailing list
>> Unsubscribe: http://penguin.firetree.net/eventcalendar
> :: Let me solve your problems: http://www.firetree.net/alex/
> :: alex.tingle AT firetree.net +44-7901-552763
> Blog: http://wpcal.firetree.net/
> EventCalendar at firetree.net mailing list
> Unsubscribe: http://penguin.firetree.net/eventcalendar
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the EventCalendar