dhirajrode
Forum Replies Created
-
I have added code to hide the link which we are using to see the previous months in the calendar. I am showing only those links which are less than 6 months from current dates.
Events Manager Version 5.5.2
I got this , instead of displaying the events form the last 6 month only. I am displaying the calendar form the last 6 months.
Thank you for replay ,
It’s working for me if I remove the condition to check the scope in the argument array. That is I am not able to pass the argument to the function. Is there other way to pass the scope to the function?I am trying to send the scope using code.
echo EM_Events::output($cell_data['events'],array('format'=>get_option('dbem_full_calendar_event_format'),'scope'=>'last6month'));
code in function.php
add_filter( 'em_events_build_sql_conditions', 'my_em_scope_conditions2',1,2); function my_em_scope_conditions2($conditions, $args){ if( !empty($args['scope']) && $args['scope']=='last6month' ){ $start_date = date('Y-m-d',strtotime("-6 months", current_time('timestamp'))); $end_date = date('Y-m-d',strtotime("last day of last month", current_time('timestamp'))); $conditions['scope'] = "(event_start_date >= CAST('$start_date' AS DATE))"; } return $conditions; } add_filter( 'em_get_scopes','my_em_scopes2',1,1); function my_em_scopes2($scopes){ $my_scopes = array( 'last6month' => 'last6month' ); return $scopes + $my_scopes; }
Forum: Plugins
In reply to: [Timely All-in-One Events Calendar] Can user add the event into the calendarOk , I got it.
Thank you for replay.
Forum: Plugins
In reply to: [WP eCommerce] wp e-commerce not workingThe version provided is already updated . I have just updated the WordPress version I don’t know what goes wrong but I didn’t see anything on the product page. The other pages in the extension works fine also the the page where i displayed the products displaying the error messages.
Forum: Networking WordPress
In reply to: Admin slowness and other issues after 3.7.1 updatewp-ecommerce plugin not working after upgrading to 3.7.1 .
It shows blank page when I click on product page