tarundeology
Forum Replies Created
-
I try to achieve this:
Say I have event for example on 1, 2, 4 & 5 january 2012 and today is 3 January 2012. I want to place it in the way below:1. next event (show the closest next event in full single page – 4 Jan)
2. upcoming event (show an event after next event in full single page – 5 Jan)
3. recent event (show an event that just past before today in full single page – 2 Jan)
4. events archive (show 5 past events with title starting from the most recent events, link and excerpt from the event before recent event (2 Jan) – just like usual blog archive page. It may have pagination to view another 5 events and so on)I can do the events archive page (and other pages as well) using the code below if I’m using regular wordpress category:
<?php $args=array( 'cat' => 5, 'showposts' => 5, 'caller_get_posts' => 1, 'offset' => 2 ); $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?> <h3><strong><a href="<?php the_permalink() ?>" rel="bookmark" title="Pautan ke <?php the_title_attribute(); ?>"><?php the_title(); ?></a></strong></h3> <?php the_excerpt(); endwhile; } //if ($my_query) wp_reset_query(); // Restore global post data stomped by the_post(). ?>
Nelra replied:
There are a few ways to do things – for categories, one would be:
get_terms( ‘events_categories’, $args );For events themselves, it depends on what you want to do exactly. You can query the ai1ec_event table, or do get_posts where post_type = ai1ec_event
but sadly I dont know how and where I should put it. Please yani @ nelra.. Thank you thank you thank you…
Forum: Plugins
In reply to: Looking for a good calendar widgetIf u could create one widget which have the date of the events highlighted, with the name of the event when hovered, it will be very helpful. I found the event calendar in https://ctl.mit.edu/events and it really nice. You could add ajax for next or previous month so the page dont have to load. It will make your plugin perfect. Please yani… ??
Multi-day events only show the first day of the event in month view. For instance, if the event is from January 10 to January 15, the event only show in January 10. I did realise that it shows properly in the week view, but i think it is a lot better to show it in the month view since it is a default view. Users might think that the date where the event continues got no event. Is there a way to show multi-days event properly in month view. If it can be done quickly, can you please show me how? Thank you.
Multi-day events only show the first day of the event in month view. For instance, if the event is from January 10 to January 15, the event only show in January 10. I did realise that it shows properly in the week view, but i think it is a lot better to show it in the month view since it is a default view. Users might think that the date where the event continues got no event. Is there a way to show multi-days event properly in month view. If it can be done quickly, can you please show me how? Thank you.
I try to achieve this:
Say I have event for example on 1, 2, 4 & 5 january 2012 and today is 3 January 2012. I want to place it in the way below:1. next event (show the closest next event in full single page – 4 Jan)
2. upcoming event (show an event after next event in full single page – 5 Jan)
3. recent event (show an event that just past before today in full single page – 2 Jan)
4. events archive (show past events with title, link and excerpt from the event before recent event backword – just like usual blog archive page.)I can do this using the code below if I’m using regular wordpress category to:
<?php $args=array( 'cat' => 5, 'showposts' => 1, 'caller_get_posts' => 1, 'offset' => 1 ); $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?> <h3><strong><a href="<?php the_permalink() ?>" rel="bookmark" title="Pautan ke <?php the_title_attribute(); ?>"><?php the_title(); ?></a></strong></h3> <?php the_excerpt(); endwhile; } //if ($my_query) wp_reset_query(); // Restore global post data stomped by the_post(). ?>
I can use the arguments
$args=array( 'cat' => 5, 'showposts' => 1, 'caller_get_posts' => 1, 'offset' => 1 and
to achieve this is using category post ID. But since I cant use the events categories nor IDs (because I dont know how), I’m stuck. One more thing that if I didnt use a proper function, the 4 pages will place the events depend on when that event (custom post type) is created, not the date of the event.
I’m stuck here……..Any help will be appreciated.if we know how to call event and event category, there are so my customization we could do. it seems that wordpress cannot call the category and event ID. please tell me how. thanks.
thanks greenrachel.
Yes I found the option for showing specific events in specific events categories, which is AWESOME!! Now I have specific upcoming events list for specific page. thank you thank you thank you!!
I wonder is the category and event ID valid throughout wordpress? like I said earlier I tried to call one event category in the loop but it returns nothing.
While waiting for your reply I was wondering around and I found this great simple plugin Widget Logic. It solves all my sidebar issues from last year! You guys are great!!!
Lastly, is it possible to have the full event to have it’s own template, in this case I want it to be full width.
If it’s not too late, Happy New Year!
What a time saver!! Thank you very much.
I’ve completed 80% from 60% when I plugged this in. Then I got request for new event, recent event, past event page to display the event automatically. I tried to use the code below to call for the event in the loop:
<?php $args=array( 'cat' => 53, // event category ID 'showposts' => 1, 'caller_get_posts' => 1, 'offset' => 2 ); $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?> <h2 class="et_pt_title"><?php the_title(); ?></h2> <p class="et_pt_blogmeta"><?php esc_html_e('Posted','Chameleon'); ?> <?php esc_html_e('by','Chameleon'); ?> <?php the_author_posts_link(); ?> <?php esc_html_e('on','Chameleon'); ?> <?php the_time(esc_attr(get_option('chameleon_date_format'))) ?> <?php esc_html_e('in','Chameleon'); ?> <?php the_category(', ') ?> | <?php comments_popup_link(esc_html__('0 comments','Chameleon'), esc_html__('1 comment','Chameleon'), '% '.esc_html__('comments','Chameleon')); ?></p> <?php the_content(); endwhile; } //if ($my_query) wp_reset_query(); // Restore global post data stomped by the_post(). ?> </div><ol>
.. but it turned out nothing shown in the respective page. Is there anyway I could call category or event in the loop?
Another thing is, can I show small calendar like wp default calendar instead of list uf upcoming events?
Finally, how can I show upcoming events in specific category in specific page? This is very useful because user might only interested in events in a specific category rather than all events from the blog. For instance, if user is in sports page, they might not interested to see events in finance category. User might miss the event he likes if the his events is not shown in the upcoming sidebar.
Thanks again for creating this wonderful plugin. ??
Forum: Themes and Templates
In reply to: Chameleon Theme – Cycle Slider – out of whackI have been modifying Chameleon theme for my client and maybe I already fixed the slider issue. You can go to misi.edu.my/v1 and use firebug to check the CSS. I got to submit everything tomorrow, so I’m a bit off hand to help you now. Keep this post alive so I can come back later, if I could give any help.
Forum: Plugins
In reply to: [Fluency Admin] [Plugin: Fluency Admin] Fluency 3.2 does not work with WP 3.3I disabled WP Custom Admin Bar and it works.
Thanks mmattner!Forum: Plugins
In reply to: [Fluency Admin] [Plugin: Fluency Admin] Fluency 3.2 does not work with WP 3.3I have deactivated Fluency Admin because of it’s incompatible with wp3.3. but the “Howdy, username” and the link to logout is missing. Does anyone know how to put it back?
Thanks in advance!
Forum: Plugins
In reply to: [SH Slideshow] [Plugin: SH Slideshow] Multiple slideshowhello!
Thanks for this great plugin.
I realize that the slideshow shows in front of other content, or in other words tops other contents which make them unreadable. I tried to put the php code in a div with height and width but nothing happened.Forum: Plugins
In reply to: [WP-Cufon] [Plugin: WP-Cufon] Latest version 1.6.9 broken!!!!yes, the developer already upgraded to 1.6.10 (or technically downgraded to 1.6.8 lol). Thanks!
Forum: Plugins
In reply to: [WP-Cufon] [Plugin: WP-Cufon] Latest version 1.6.9 broken!!!!hi sarangan112!
I upgraded to 1.6.9 like u, and it’s broken. now i dont know how to downgrade it. how u do it?
Forum: Fixing WordPress
In reply to: Auto resize big imagesHello djavin.
I happened to bump to your post about resizing uploaded images to WP. I found this wonderful plugin Imsanity that will handle this issue like a charm! ??
Hope that helps.