Title: Shortcode error
Last modified: August 31, 2016

---

# Shortcode error

 *  Resolved [dqderrick](https://wordpress.org/support/users/dqderrick/)
 * (@dqderrick)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/shortcode-error-9/)
 * I’m getting this code/error when I use the [beer id=”1″] shortcode. I tried [
   beer-list] and it seems to work. I also tried [beer id=1] and I tried different
   beer id’s that matched other demo submissions I have done.
 * Here is the error:
    array(3) { [“id”]=> string(2) “12” [“profile”]=> bool(true)[“
   extras”]=> bool(true) } array(3) { [“id”]=> string(1) “1” [“profile”]=> bool(
   true) [“extras”]=> bool(true) }
 * I just downloaded and installed your plugin last night and it is 2.0.
 * Site is running:
    Richer theme with child theme Visual Composer Plugin and a 
   few other plugins that I doubt would affect it.
 * Page code in Visual Composer (backend)
    [https://dl.dropboxusercontent.com/u/94126/Snagit%20QuickSnaps/2-5-2016%209-44-09%20AM.png](https://dl.dropboxusercontent.com/u/94126/Snagit%20QuickSnaps/2-5-2016%209-44-09%20AM.png)
 * Rendered Home page with errors and working [beer-list] shortcode
    [https://dl.dropboxusercontent.com/u/94126/Snagit%20QuickSnaps/2-5-2016%209-43-19%20AM.png](https://dl.dropboxusercontent.com/u/94126/Snagit%20QuickSnaps/2-5-2016%209-43-19%20AM.png)
 * Beer entries
    [https://dl.dropboxusercontent.com/u/94126/Snagit%20QuickSnaps/2-5-2016%209-42-50%20AM.png](https://dl.dropboxusercontent.com/u/94126/Snagit%20QuickSnaps/2-5-2016%209-42-50%20AM.png)
 * I also noticed my that the “Enable comments on single beer pages” checkbox in
   settings doesn’t save its state when I check it and hit save. I probably won’t
   use it anyway. I tried disabling Untappd as a test and it saved state no problem.
 * [https://wordpress.org/plugins/em-beer-manager/](https://wordpress.org/plugins/em-beer-manager/)

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

 *  Plugin Author [Erin Morelli](https://wordpress.org/support/users/erinmorelli/)
 * (@erinmorelli)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/shortcode-error-9/#post-7032987)
 * Hi dqderrick,
 * Firstly, I just want to apologize for the error that was being output. It was
   a debugging statement I had left in the code and it should’ve been removed before
   I released v2 – so my apologies for that.
 * Secondly, I’ve pushed out v2.0.1 which fixes the error output and also fixes 
   the comments checkbox issue (thanks for catching that!).
 * Hopefully the new version fixes your issues – let me know if they don’t.
 * Thanks!
 *  Thread Starter [dqderrick](https://wordpress.org/support/users/dqderrick/)
 * (@dqderrick)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/shortcode-error-9/#post-7033045)
 * Thank you for the fix! Excellent.
 * I don’t see the error code any longer.
 * However, should this shortcode produce something?
    Example in Settings: [beer
   id=”beer id”] My use: [beer id=”1″] (I have a beer with ID=1 and one with ID=
   12)
 * They both come up when I use [beer-list]
 *  Thread Starter [dqderrick](https://wordpress.org/support/users/dqderrick/)
 * (@dqderrick)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/shortcode-error-9/#post-7033047)
 * Maybe I missed something.
 * Do I need to integrate this somewhere in my child theme?
 * **Template tag
    
   
    <?php echo EMBM_Output_Beer_display( $beer_id, $args ); ?>
   Where $beer_id is required and $args is a PHP array of comma-separated key =>
   value pairs. For example:
 * <?php echo EMBM_Output_Beer_display( 123, array(
    ‘show_profile’ => false, ‘show_extras’
   => true ) ); ?>
 *  Plugin Author [Erin Morelli](https://wordpress.org/support/users/erinmorelli/)
 * (@erinmorelli)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/shortcode-error-9/#post-7033144)
 * Hi dqderrick,
 * Using the shortcode `[beer id="123"]` where 123 is your beer’s post ID should
   work. You’ve verified that the IDs you’re using are the correct values from the“
   ID” column under “Beers” in the admin? And also that the beers in question are
   published (not “draft” or “private”)?
 *  Plugin Author [Erin Morelli](https://wordpress.org/support/users/erinmorelli/)
 * (@erinmorelli)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/shortcode-error-9/#post-7033145)
 * Also, in the post or page where you are trying to use the `[beer]` shortcode,
   go into the “code view” and make sure WordPress isn’t adding extra HTML markup
   around the shortcode.
 *  Thread Starter [dqderrick](https://wordpress.org/support/users/dqderrick/)
 * (@dqderrick)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/shortcode-error-9/#post-7033157)
 * OK, I’m terribly embarrassed here. I apologize for my misunderstanding.
 * I got completely locked in on “Beer No.” being the Beer ID! I just went in and
   took a hard look at the “All Beers” list in the WordPress Dashboard and FINALLY
   noticed the ID column. Terrible! Sorry about that. I can only guess that I thought
   the ID column was a generic WordPress column since it is only labeled “ID”. Jeez.
 * As you’d expect, works perfectly. Thank you.
 * What is “Beer No.”? It doesn’t seem to affect the default sort order on [beer-
   list]. Is it maybe part of “menu-order” sort order? I read through the documentation
   and didn’t see any reference to the purpose of that number. Maybe one would use
   it for internal/personal tracking of some sort.
 *  Plugin Author [Erin Morelli](https://wordpress.org/support/users/erinmorelli/)
 * (@erinmorelli)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/shortcode-error-9/#post-7033160)
 * No worries! I’m glad it’s working now!
 * The “Beer No.” is an optional field for if a user/brewery has their own internal
   numbering system for keeping track of their beers. Thanks for noticing the lack
   of documentation on that though! I’ll add something to the description ASAP 🙂

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

The topic ‘Shortcode error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/em-beer-manager_dbc8aa.svg)
 * [EM Beer Manager](https://wordpress.org/plugins/em-beer-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/em-beer-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/em-beer-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/em-beer-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/em-beer-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/em-beer-manager/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 7 replies
 * 2 participants
 * Last reply from: [Erin Morelli](https://wordpress.org/support/users/erinmorelli/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/shortcode-error-9/#post-7033160)
 * Status: resolved