post-page

Shortcode Generator

4
responses
heading
heading
heading
4
Responses

 

Comments

  1. Andrew (31 comments.) says:

    Jeffro, That looks like a really easy way to create Shortcodes. I have updated my plugin generator to include shortcodes; it adds the hooks and function calls but it does expect a bit more knowledge to use than this tool as it leaves the developer to fill in the details themselves.

  2. Eagle (1 comments.) says:

    The wordpress shortcodes will work only by default on posts and pages. You could add this statement add_filter(‘widget_text’, ‘do_shortcode’); to your wordpress themes functions.php file to make the shortcodes work in the Text Widget. You will need to replace “do_shortcode” with the name of your shortcode function.

    To use your shortcodes outside of posts, pages, and the text widget, you could always call your shortcode function directly like this:

    [code]
    $text = yourShortCodeFunction(‘[your shortcode tag here]’);
    echo $text;
    [/code]

    The above code will allow you to use wordpress shortcodes anywhere in your blog. I’m not sure if the code will display here, always have problems posting code.

    Very informative blog, lots of information.

  3. Alex (5 comments.) says:

    Thanks a lot for this tip. I use shortcodes when im programming in C#, all you do is press tab twice and it prints out the rest of the code. I usually use it for loops and such but when i want to do a segment of BBCode this will come in handy.

  4. Robomaster (3 comments.) says:

    Which would be better, this or Stumbleupon’s su.pr plugin?



Obviously Powered by WordPress. © 2003-2013

page counter
css.php