WordPress.org

Ready to get started?Download WordPress

Forums

BetterAntiSpamBot
Buggy shortcode-function (2 posts)

1 star
  1. pragmas
    Member
    Posted 1 year ago #

    In a shortcode-function you should use a return statement and never an echo!

    function footag_func( $atts ) {
         return "foo = {$atts['foo']}";
    }
    add_shortcode('footag', 'footag_func');

    Please check on http://codex.wordpress.org/Function_Reference/add_shortcode. If you do as I describe, your plugin works fine.

    Thanks for your JS-Script anyway.
    Greetings
    Michel

  2. noneevr2
    Member
    Plugin Author

    Posted 1 year ago #

    Quickly fixed that
    Thank you for the constructive feedback.
    (I'm new to the WP framework)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.