WordPress.org

Ready to get started?Download WordPress

Forums

Bottom of every post
[resolved] Shortcode not working? (8 posts)

  1. jamiek47
    Member
    Posted 9 months ago #

    Hi,

    When I enter plain text it shows fine at the bottom of the post.

    When I enter the short code for plugins though nothing happens.

    Why is this?

    Thanks

    http://wordpress.org/plugins/bottom-of-every-post/

  2. Corey Salzano
    Member
    Plugin Author

    Posted 9 months ago #

    There is no call to execute shortcodes on the message content. You could hack it in if you want this behavior. I am never going to publish another update to this plugin, so you don't have to worry about an update crushing your customizations.

    http://codex.wordpress.org/Function_Reference/do_shortcode

  3. jamiek47
    Member
    Posted 9 months ago #

    Hi Corey,

    Thanks for getting back to me although you don't support this any more :(

    So I just need to add the code.

    <?php echo do_shortcode( $content ) ?>

    Where should I add it?

    Appreciated!

  4. Corey Salzano
    Member
    Plugin Author

    Posted 9 months ago #

    There's no reason for me to update the plugin. Nearly every user customizes it like you are about to do yourself, and updates break those changes.

    Change line 43:

    return $content . do_shortcode( stripslashes( $msg ));

  5. jamiek47
    Member
    Posted 9 months ago #

    Thanks for helping out Corey I appreciate it.

    I added the code but the short code is just displaying as text at the bottom of the post.

    Any ideas why?

    Cheers

  6. jamiek47
    Member
    Posted 9 months ago #

    Ok I got it working, its just one of the plugins shortcode doesn't work!

    Thanks Corey.

  7. Johanhorak
    Member
    Posted 3 months ago #

    Hi Corey

    Thanks. Let me confirm:

    I need to add the following to your plugin?

    <?php echo do_shortcode( $content ) ?>

    and

    Change line 43:

    return $content . do_shortcode( stripslashes( $msg ));

  8. Corey Salzano
    Member
    Plugin Author

    Posted 3 months ago #

    The only change required is line 43.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags