• Resolved Alex

    (@customtest)


    Hello there,
    First of all let me thank you for this awesome plugin. I am working on a Multisite, and I need to retreive shortcode’s data on AJAX call for different sub-sites. But [spiffy-week] shortcode returns weekly calendar form Main site always.

    I am trying with this code

    switch_to_blog($siteID);
    $result[‘html’] = do_shortcode(‘[spiffy-week]’);
    restore_current_blog();

    It’s becasue, WP_SPIFFYCAL_TABLE variable have main site’s Table name instead of $siteID.
    When I use this shortcode on subsite page’s then its working fine.

    Hope you can help me with this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Spiffy Plugins

    (@spiffyplugins)

    I have made a new version 4.7.0 which removed the constant table names. Let me know if this fixes your problem.

    Thread Starter Alex

    (@customtest)

    Hey there,

    Thanks for quick reply. I can see that you have removed constant table name from plugin’s main file.
    But As of now I am not able to update the Events.
    While debugging, I have found this.
    $wpdb->$wpdb->get_blog_prefix().WP_SPIFFYCAL_TABLE in spiffy-calendar.php file.
    It should be $wpdb->get_blog_prefix().WP_SPIFFYCAL_TABLE

    Anyways shortcode is working now for Subsite as well for ajax.

    Thanks

    Plugin Author Spiffy Plugins

    (@spiffyplugins)

    Please try version 4.7.1 now

    Thread Starter Alex

    (@customtest)

    Now its working. Thanks for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Short code not working’ is closed to new replies.