Title: Undefined variable?
Last modified: March 1, 2018

---

# Undefined variable?

 *  Resolved [awholelotofnothing](https://wordpress.org/support/users/awholelotofnothing/)
 * (@awholelotofnothing)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/undefined-variable-53/)
 * Please advise what may be the issue? I can’t provide a direct link to the site
   I’m working on because it’s under maintenance.
 * Notice: Undefined variable: spc_output in /home/content/p3pnexwpnas02_data02/
   49/2189949/html/wp-content/plugins/show-post-categories/includes/category.php
   on line 90
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fundefined-variable-53%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [willemso](https://wordpress.org/support/users/willemso/)
 * (@willemso)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-53/#post-10031003)
 * Hi awholelotofnothing
 * Could you say what version you are currently using?
    Also, please post the shortcode
   causing the issue.
 *  Thread Starter [awholelotofnothing](https://wordpress.org/support/users/awholelotofnothing/)
 * (@awholelotofnothing)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-53/#post-10032660)
 * Version 2.2.33
 * [show_post_categories show=”category” parentcategory=”Heat Rating” parent=”no”
   hyperlink=”yes”]
 * Thanks!
 *  Plugin Author [willemso](https://wordpress.org/support/users/willemso/)
 * (@willemso)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-53/#post-10033590)
 * Hi awholelotofnothing
 * could you tell me if your shortcode is entered by using some pagebuilder, or 
   by using the default WP Visual/Text editor?
 * In the above code there is a double quote: ” (in unicode that´s [U + 201D](https://www.compart.com/en/unicode/U+201D))
   
   where it should be ” instead (that´s in Unicode [U + 0022](https://www.compart.com/en/unicode/U+0022)
   or in ASCII that´s ALT + 34).
 * I tried your code in my Dev kit with v2.2.33 and it worked as expected. Try to
   copy this code instead;`[show_post_categories show="category" parentcategory="
   Heat Rating" parent="no" hyperlink="yes"]`
 * If this does not work, could you remove SPC completely and install the developers
   edition? Go to [the bottom of this page](https://wordpress.org/plugins/show-post-categories/advanced/)
   and select “Development version”, download the zip & Upload it to your plugins.
   Activate it and try again..
 * _note; the developers version is untested, but I am sure the category part will
   work fine._
 * Now if still experiencing issues, could you provide me with a screenshot of the
   linked categories? In that cas I´ll simulate some more using your exact scenario.
 * Keep me posted!
 *  Thread Starter [awholelotofnothing](https://wordpress.org/support/users/awholelotofnothing/)
 * (@awholelotofnothing)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-53/#post-10033680)
 * I tried deleting then installing the developers version and am still getting 
   the same warning. I also tried using raw HTML as opposed to WYSIWYG Text to add
   the code. I’m using WP Bakery but I disabled it to enter the code you provided
   using the default WP Text editor.
 * Which linked categories do you need? [These are the child categories](https://www.dropbox.com/s/3ks4d77gw5swjmm/Screenshot%202018-03-02%2016.31.20.png?dl=0)
   of the Heat Rating category I sent upthread.
 * Thanks!
 *  Plugin Author [willemso](https://wordpress.org/support/users/willemso/)
 * (@willemso)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-53/#post-10033734)
 * Hi,
 * I think it might be some conflict between SPC & WP Bakery since I am unable to
   simulate it..
 * Could you try by only using
    `[show_post_categories show="category"]`
 * If this works, add the attributes one by one just to see if it breaks in a specific
   situation?
 * Also, do you remember if the issue started after upgrading to 2.2.33?
 *  Thread Starter [awholelotofnothing](https://wordpress.org/support/users/awholelotofnothing/)
 * (@awholelotofnothing)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-53/#post-10033779)
 * I used the plugin on a development version of the site using WP Bakery several
   months ago without issue. Maybe the new version of the SPC plugin has some kind
   of glitch?
 * I tried [using the shortcode](https://www.dropbox.com/s/q324nq3ns4u64b4/Screenshot%202018-03-02%2017.04.19.png?dl=0)
   you provided and it gives every category for the post as it should but with the
   same error.
 *  Plugin Author [willemso](https://wordpress.org/support/users/willemso/)
 * (@willemso)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-53/#post-10033907)
 * ok, I think I might have a lead.
    Could you once again remove SPC & reinstall
   the dev version?
 * I just updated some coding in the category part that might fix it. So make sure
   you download the new available developers version 🙂
 *  Thread Starter [awholelotofnothing](https://wordpress.org/support/users/awholelotofnothing/)
 * (@awholelotofnothing)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-53/#post-10033925)
 * It worked! Thanks so much!
 *  Plugin Author [willemso](https://wordpress.org/support/users/willemso/)
 * (@willemso)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-53/#post-10033977)
 * **Great!**
    It will be about a week before you’ll see an update notification (
   2.2.34) that will bring you back to the stable release.
 * I hope this also fixes your previous issue. In case there are no more issues 
   I’ll close this topic. Also, if you like using SPC a small review keeps us going
   😉

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Undefined variable?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/show-post-categories_446def.svg)
 * [Show Post Categories](https://wordpress.org/plugins/show-post-categories/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/show-post-categories/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/show-post-categories/)
 * [Active Topics](https://wordpress.org/support/plugin/show-post-categories/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/show-post-categories/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/show-post-categories/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [willemso](https://wordpress.org/support/users/willemso/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-53/#post-10033977)
 * Status: resolved