WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am just using Random image Widget, it's for image gallery. Please anybody tell me that how can I use this widget functionality on my website page or post?

share|improve this question
I bet if you had typed your question title into google you'd already have an answer. – Andrew Bartel Apr 23 '13 at 6:51

To display elsewhere in a page, you can call the display function in the appropriate php file of your theme using the function echo _random_image()

share|improve this answer
where I have to put this function? – dharam Apr 23 '13 at 7:17
I have got very simple way for use widget on page or post. Just download widget-short-code plugin and install it, this plugin generate short-code for widget so now we have to only copy and paste short-code in pages or post where you want to use widget. Thanks to all for help... – dharam Apr 23 '13 at 10:54

This can be done by calling the widget inside a shortcode. Generally shortcodes can be inserted into any post or pages. This plugin will cover the widgets into shortcode **

Widget Shortcode

** Adds a [widget] shortcode which enables you to output a widget anywhere you like. Can be found here http://wordpress.org/extend/plugins/widget-shortcode/

share|improve this answer
thanks vicky, I just try it. – dharam Apr 23 '13 at 7:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.