Support » Plugin: Social Feed | Custom Feed for Social Media Networks » Integration problem with WPML Translation Management

  • Hi. I had an integration problem between your plugin and the WPML Translation Management plugin, which consists of having both plugins installed and active, when you use the “Quick Edit” option from the WordPress administrator the post is hidden and the Edit panel Rapida is not shown. I found where the problem was and implemented a solution, which you can integrate into your plugin in next versions.

    Just add a check to the Register and Add the scripts in the file … / includes / sfbap1-enqueue-scripts.php. Here are the changes:

    Line 73 and 75

    if ($ _GET ['post_type'] === "sfbap1_social_feed") {
    wp_register_script ('sfbap1_script', plugin_dir_url (__ FILE__). '../js/sfbap1-script.js', array ('jquery'));
    wp_enqueue_script ('sfbap1_script');

    Line 94

    if ($ _GET ['post_type'] === "sfbap1_social_feed") {
    wp_enqueue_script ('sfbap1-scriptjs', plugin_dir_url (__ FILE__). '../js/sfbap1-script.js', array ());

    I hope I’ve been useful. Cheers

  • You must be logged in to reply to this topic.