Ready to get started?Download WordPress


Display Posts Shortcode
[resolved] Call the plugin without Shortcode (2 posts)

  1. cbmark
    Posted 2 years ago #

    Hi, I am wanting to use Display Posts on a sidebar without a widget. I just wondered how I could call it without the shortcode. I understand this is kinda against the objective of the plugin but I do use the shortcode elsewhere and would rather have 1 plugin not 2 doing effectively the same thing.

    Thanks :)


  2. Bill Erickson
    Plugin Author

    Posted 2 years ago #

    I'd recommend simply turning on shortcodes for your sidebar widgets, and then you could do it by dropping the shortcode in a text widget.

    Add this to your theme's functions.php file:

    add_filter('widget_text', 'do_shortcode');

    This will be a built-in feature of WordPress with the next version: http://core.trac.wordpress.org/ticket/10457

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic