• Resolved Pedja

    (@pedja_s)


    Hi, I’ve just noticed one small error in code and here is a quick fix. If you try to add shortcode [fb_widget] to a page instead of just adding widget to a sidebar, the widget will not show. Problem is in file short_code.php.
    On line 26 there is this line of code
    wp_localize_script('myownscript', 'vars', $local_variables);

    Replace ‘vars’ with ‘milapfbwidgetvars’ and now it should work.

    https://ww.wp.xz.cn/plugins/facebook-pagelike-widget/

Viewing 1 replies (of 1 total)
  • Plugin Author Milap

    (@milap)

    Hi Pedja,

    Thank you so much for your suggestion, i really appreciate it. I have changed that parameter.
    However, i have updated my plugin for shortcode support. Now you can use shortcode without adding widget.
    For example,

    [fb_widget fb_url="http://www.facebook.com/Instagram" width="500" height="450" data_small_header="false" select_lng="ru_RU" data_adapt_container_width="false" data_hide_cover="false" data_show_facepile="false" data_show_posts="true"]

    Let me know if you still find any issue with shortcode or my plugin.

    Kind Regards,
    Milap

Viewing 1 replies (of 1 total)

The topic ‘Correction in code’ is closed to new replies.