• I have a WP installation where the plugin shortcodes aren’t working except for Gravity Forms. The built in WP shortcodes work fine, it’s just the plugin shortcodes that I’m having a problem with.

    1.) I’ve disabled all of the plugins and that didn’t help.
    2.) I’ve cleared the cache, multiple browsers & computers, no change.
    3.) Went to the basic WP theme, no change there either.

    I’m out of ideas and would love for some expert help.

    Here is the page where you can see a shortcode in place that isn’t working: https://livingway.net/media-3/sermons/

    Thanks!

    Chad Hardy

Viewing 15 replies - 1 through 15 (of 16 total)
  • Are you adding the short codes in the html side of the editor, try that and see if it will work that way.

    Thread Starter chadhardy

    (@chadhardy)

    I had already tried that, but I just tried it again just for the heck of it ??

    Still not working. Same results.

    Thanks for the reply though.

    Ok was curious about that as I have some issues like this with the editor, not displaying code correctly, but your issue sounds like a parsing issue, I would check the plugin itself to see how it parses the short codes, to see if there is a path issue.

    Thread Starter chadhardy

    (@chadhardy)

    All plugins are getting the same results.

    I’ve tried that Sermon Browser you see there, audio players, video players, etc. none of them work except the Gravity Forms plugin.

    Very strange!

    have you tried the default theme to see if it is a theme issue,

    Thread Starter chadhardy

    (@chadhardy)

    Yep, tried that too.

    I’ve done lots of searching, and tried many “fixes”, but none of them have worked so far.

    The site was working on a previous theme (custom design), then I used Genesis with a modified theme. I upgraded WP during all of this as well.

    After working on the site for a few days I tried the Sermon Browser plugin, that’s when I first noticed the shortcode issue.

    I didn’t know if I should try installing an older version of WP, or do a manual reinstall of WP or what.

    This is really boggling my mind.

    I do appreciate the help.

    sure just covering the basics, you should be able to do a preview test in the panel, to see if the short code parses correctly if it does then you know that you need to look at the theme PHP to find a solution, I use genesis too, and I have not been able to use all the child themes, as some do not work well with plugins, if you like the church theme, you may need to make an adjustment in the code.

    I found a reference, you might be able to make work, https://dev.studiopress.com/post-taxonomy-shortcode.htm

    I am having the identical problem chadhardy. None of my shortcodes work at all, no matter what plugin I use or what fix I try. You can see what is going wrong here – https://www.guilt-free-goodness.com/blog/shopping-cart It is driving me crazy! I hope someone can come up with a fix for this problem.

    Thread Starter chadhardy

    (@chadhardy)

    @eduguytoo – How would that post help me? It looks like that is just creating a new shortcode, isn’t?

    I’m not great when it comes to PHP, so please forgive me if I’m reading that wrong.

    @rdart – I hope we get it figured out ??

    Thanks!

    Thread Starter chadhardy

    (@chadhardy)

    I forgot to mention that the shortcode doesn’t work in the preview window either.

    Chad

    I looked at the church template, and I guess this would probably be better on the SP website, but since were here right now, and were not sure the exact cause of this,

    One thing I saw in the code, (and there was a lot of stuff in there)

    was that they declare headers, which might be an issue, before you go down the rabbit hole after this thing, you may need to test out by activating the default theme, and setting up the short code in the admin section, admin.php I think, from what small amount of time I spent on it, from the two posts, I saw on SP, it appears that you may have to manage the short codes separate of the normal method, but you wont know this until you know for sure if it is in the theme or not.

    That would be my next attempt at testing out where the issue is, once you find out where the problem is you can find a way to fix it,

    // Register [sermon] shortcode handler
    	add_shortcode('sermons', 'sb_shortcode');
    	add_shortcode('sermon', 'sb_shortcode');

    One thing I noticed right away was that I could not find these files loading in your header, `// Register custom CSS and javascript files
    wp_register_script(‘sb_64′, SB_PLUGIN_URL.’/sb-includes/64.js’, false, SB_CURRENT_VERSION);
    wp_register_script(‘sb_datepicker’, SB_PLUGIN_URL.’/sb-includes/datePicker.js’, array(‘jquery’), SB_CURRENT_VERSION);
    wp_register_style(‘sb_datepicker’, SB_PLUGIN_URL.’/sb-includes/datepicker.css’, false, SB_CURRENT_VERSION);
    if (get_option(‘permalink_structure’) == ”)
    wp_register_style(‘sb_style’, trailingslashit(site_url()).’?sb-style&’, false, sb_get_option(‘style_date_modified’));
    else
    wp_register_style(‘sb_style’, trailingslashit(site_url()).’sb-style.css’, false, sb_get_option(‘style_date_modified’));`

    So you know that if your js files and css files are not loading then that is just one problem,

    in sermon.php

    this is one place where you might have a look at tracing the call from the theme to the plugin, but if your js scripts are not loading, then that is a path issue,

    /**
    * Main initialisation function
    *
    * Sets up most WordPress hooks and filters, depending on whether request is for front or back end.
    */
    function sb_sermon_init () {
    	global $sermon_domain, $wpdb, $defaultMultiForm, $defaultSingleForm, $defaultStyle;
    	$sermon_domain = 'sermon-browser';
    	if (IS_MU) {
    			load_plugin_textdomain($sermon_domain, '', 'sb-includes');
    	} else {
    			load_plugin_textdomain($sermon_domain, '', 'sermon-browser/sb-includes');
    	}
    	if (WPLANG != '')
    		setlocale(LC_ALL, WPLANG.'.UTF-8');

    it might just be the missing js scripting, but I have not really looked at how it is connected yet, again once you know for sure that the theme is the problem you can start down the rabbit hole,

    Thread Starter chadhardy

    (@chadhardy)

    Thanks for the indepth reply.

    Before I posted here I did re-enable the basic WP theme, and I still get the same response. If that’s the case it shouldn’t be the theme – right?

    Please let me know if I’m wrong, and I will be happy to try whatever I need to.

    Also, this happens with any plugin. I’ve tried a couple of different audio and video players, and none of their shortcodes work either. The only ones that work so far are the Gravity Forms.

    Strange….

    Thanks
    Chad

    Well that certainly puts a hole in the it must be the theme theory,

    I will do some testing to see if I can reproduce the issue and find another place to look for an answer,

    Anyone get an answer to this? I am having the same issue. Not a theme issue or a plugin. ??

    And you’re using WordPress 3.1.3? If not, please post a new topic.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Shortcodes not working’ is closed to new replies.