All in One Calendar Plugin Custom Post Type Query [closed]

Ok so hope this helps someone. Unless you want to query the database directly, the trick is to include the following: $event = Ai1ec_Events_Helper::get_event($post->ID); thereafter you can retrieve the variables, for example: <?php query_posts(‘post_type=ai1ec_event’);?> <?php while ( have_posts() ) : the_post(); ?> <?php $event = Ai1ec_Events_Helper::get_event($post->ID); ?> <?php echo ‘<h5><a href=”‘.get_permalink().'”>’.get_the_title().'</a></h5>’; ?> <?php if( $event->multiday … Read more

next and previous year month and day for archive page

thank u all i just did a simple code to get what i want <?php $prevyear = date(‘2150’) – 0001; $nextyear = date(‘2150′) + 0001; $prevmonth = date(’01’) – 01; $nextmonth = date(’01’) + 01; echo echo get_year_link($prevyear).”<br />”.get_year_link($nextyear).”<br />”.get_year_link($prevmonth).”<br />”.get_year_link($nextmonth).”<br />”; ?>

My Calendar Plugin – add output directly in template file

You can use the function do_shortcode in your template to output the content generated by the shortcode that My Calendar provides for listing events. For an example, to show a list of upcoming events use something like: <?php echo do_shortcode(‘[my_calendar_upcoming before=”3″ after=”3″ type=”event” fallback=”No events coming up!” category=”General” template=”{title} {date}” order=”asc” skip=”0″]’); ?> Take note … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)