Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Erin Morelli

    (@erinmorelli)

    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

    (@dqderrick)

    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

    (@dqderrick)

    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

    (@erinmorelli)

    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

    (@erinmorelli)

    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

    (@dqderrick)

    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

    (@erinmorelli)

    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.