• Hi

    I have a serious problem to work with shortcode. I checked my code many times but I don’t know why I can’t see the output of my plugin. In main file of my plugin, I use following code to add shortcode to wordpress:

    function image_label_maker_makeshortcode() {
      ob_start();
      image_label_maker_apply();
       html_form_code();
      return ob_get_clean();
    }
    add_shortcode('image_label_maker_form','image_label_maker_makeshortcode');

    ——————————————–
    html_form_code is the input form for the plugin and image_label_maker_apply function checks and processes sending values from the input form. I use Twenty Sixteen theme and I think it is an issue that is related to theme, because other shortcode such as gallery does not work. If you know what is the problem, please guide me.

    Thanks

Viewing 1 replies (of 1 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    >> I think it is an issue that is related to theme, because other shortcode such as gallery does not work. <<

    This may be a plugin or theme conflict. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    If you can install plugins, install “Health Check”: https://ww.wp.xz.cn/plugins/health-check/ On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.

Viewing 1 replies (of 1 total)

The topic ‘problem with shortcode’ is closed to new replies.