Plugin này chưa được cập nhật với 3 phiên bản mới nhất của WordPress. Nó có thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress mới nhất.

Gallery Widget

Mô tả

Gallery Widget is a simple plugin that let you show the latest/random images of
the wordpress media gallery inside a widget, directly in your templates (it is
possible to choose some categories to be included/excluded) or in posts/pages
using a shortcode (see faq on how to use them).

For more information on how to use this plugin see splash 😉

Please report bugs and/or feature-request to the ticket-system: TicketSystem/Wiki.
For Support, please use the forum.
Latest development news: Twitter.

Cài đặt

  1. Upload the ‘gallery_widget’ folder to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in the WordPress admin
  3. Go to Design->Widgets, activate the “Gallery Widget”, adjust the title and max number of images to your needs
  4. use the php-object $galleryWidget in your template (see here )

Warning: Cause of the way the attachments are fetched using the standard option (all), even images of not yet
published posts are shown. If this is a problem for you, you should use the option (include or exclude), although it
is less optimized.

Hỏi đáp

How can i adjust the look of the Widget?

Just use the CSS-Class “wGallery” to alter the ul- or li-tags.

How can i get only the images of one/some categories?

Use the category-option include or exclude and enter the id’s separated by comma
in the options of the widget.

Why doesn’t the images link to the parent article?

This option actually only works with “category-option” set to include or exclude.

How do i use the shortcodes?

This is explained here.

Is it possible to show the images at any position in the theme (not only as widget)?

Yes, is explained here

Shortcode-Example using CSS

This is explained here.

For more examples and other questions, take a look at the support forum.

Đánh giá

There are no reviews for this plugin.

Người đóng góp & Lập trình viên

“Gallery Widget” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

Nhật ký thay đổi


  • [FIX] code cleanup
  • -> please don’t use the functions calls anymore (use the galleryWidget-Object instead), support will be dropped with the next version


  • [NEW] choose imagesize
  • -> How to use another image/thumbnailsize is described here (


  • [FIX] bugfix release for wp3.0 (instead of null, $wpdb->get_results now returns an empty array – damn!)
  • [FIX] readme: code examples moved the forum (buggy readme-parser?)
  • -> FAQ @ forum


  • [NEW] dutch translation bei Rene


  • [NEW] show post-title instead of image title
  • [NEW] title added to img-tags
  • [WARNING] do not update, if you use a wordpress version less than 2.8!


  • [FIX] security (don’t allow script execution outside wordpress)




  • [FIX] leading zero in categorylist (#16)
  • [NEW] italian translation by Gianni Diurno


  • [NEW] russian translation by Fat Cow
  • everyone is invited to send me a translated language pack, thx


  • [FIX] description of widget
  • [FIX] gettext domain
  • [NEW] german translation
  • more information




  • [FIX] don’t show images of scheduled posts using the exclude option (#15)
  • more information


  • [NEW] shortcode example, using css (see FAQ)
  • [NEW] updateinfobox/notice system
  • more information



  • [FIX] don’t print debug message as html comment


  • [NEW] OOP rewrite (with wrapper functions for the old function calls)
  • more information




  • [FIX] supress the error message, if no posts found for include/exclude…
  • more information




  • [FIX] Can add CSS-class @widget control menu
  • [FIX] Include/exclude categories
  • [NEW] Option: add a link relation
  • more information


  • [FIX] Missing mime_type added (for the custom sql query used by “category-option” include/exclude)
  • more information


  • [NEW] Option to link to the (parent) articles instead of the images (actually only works with “category-option” set to include or exclude)
  • more information


  • [NEW] Option: Link to images directly or to the summary page (with the ability to comment on images)
  • [NEW] Option: Add a CSS-Class to the link
  • more information


  • [FIX] MySQL 5.0.51/GROUP BY-Problem
  • take a look at the warning
  • more information



  • [NEW] New Option, now you can decide if the Widget is shown on all pages or the frontpage only
  • more information


  • [NEW] Option to include or exclude categories of posts (see FAQ)
  • more information


  • [NEW] “selecting” post-categories to be used to get attachments


  • [NEW] It is now possible to get “latest” or “random” Images
  • more information