WordPress.org

Ready to get started?Download WordPress

Forums

Content Widget
Ideas and suggestions (8 posts)

  1. shazdeh
    Member
    Plugin Author

    Posted 1 year ago #

    Have any idea about how to make this plugin better? I'd love to hear them!

    http://wordpress.org/extend/plugins/content-widget/

  2. BoĊĦtjan Cigan
    Member
    Posted 1 year ago #

    I have a suggestion, if you could add a "random" checkbox to the widget settings, then the content would be randomly outputted - you wouldn't select the post.

  3. Carsten Bach
    Member
    Posted 1 year ago #

    I made some minor improvements to your form.php to see the choosen Posttitle within the widget-dashboard, also with closed widget forms.
    Have a look at this gist.

    Have a look at the lines 9 & 10
    We don't want an empty dropdown here with files attachements, so I suggest to remove it by default.

    Now, the line 23
    I added a hidden input-form-field to keep the title of the choosen post or page. For the WordPress Widget Class it's important to have a field named explicity title to generate the in-widget-title from.

    Last, but not least - lines 49 to 57
    This small piece of jQuery grabs the Posttitle from the selected option and returns it to our introduced hidden input.

    I made a screenshot of the result.

  4. shazdeh
    Member
    Plugin Author

    Posted 1 year ago #

    Awesome improvements! I'll add these for the next version of the plugin. Thank you :)

  5. Carsten Bach
    Member
    Posted 1 year ago #

    You're welcome. Great that it'll find a way into the next version. Thanks.

  6. brewtal
    Member
    Posted 1 year ago #

    Hello, great plugin! Could you please add shortcode functionality? The posts that I put inside the widget use shortcodes.. and on the widget they appear as [shortcode].

    Sorry if I couldn't explain better, it's pretty late :)

  7. shazdeh
    Member
    Plugin Author

    Posted 1 year ago #

    @brewtal: The solution posted here will enable the shortcodes on the Content Widget plugin as well: http://digwp.com/2010/03/shortcodes-in-widgets/

  8. brewtal
    Member
    Posted 1 year ago #

    @shazdeh: thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic