Title: Create shortcode for Categories widget?
Last modified: August 19, 2016

---

# Create shortcode for Categories widget?

 *  [Michael Tieso](https://wordpress.org/support/users/vskylabv/)
 * (@vskylabv)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/create-shortcode-for-categories-widget/)
 * I’m trying to create a shortcode for the categories widget. Can anyone tell me
   what I’d have to code inside my functions to get this working? Thanks so much!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Michael Tieso](https://wordpress.org/support/users/vskylabv/)
 * (@vskylabv)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/create-shortcode-for-categories-widget/#post-1804807)
 * I’ve found this
    [http://codex.wordpress.org/Function_Reference/get_categories](http://codex.wordpress.org/Function_Reference/get_categories)
   but can’t seem to make out how to create function for it to work as a shortcode.
 *  Thread Starter [Michael Tieso](https://wordpress.org/support/users/vskylabv/)
 * (@vskylabv)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/create-shortcode-for-categories-widget/#post-1804851)
 * Still can’t figure this out.
 *  [toddhalfpenny](https://wordpress.org/support/users/toddhalfpenny/)
 * (@toddhalfpenny)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/create-shortcode-for-categories-widget/#post-1804910)
 * Not exactly sure what you’re after here, but if the end goal is to use a shortcode
   to display the categories widget (say within a post/page) then you could use 
   the [Widgets on Pages](http://wordpress.org/extend/plugins/widgets-on-pages/)
   plugin to create a sidebar that can be called via a shortcode?
 * If you do this then you could add your categories widget to that sidebar… et 
   voila!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Create shortcode for Categories widget?’ is closed to new replies.

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 3 replies
 * 2 participants
 * Last reply from: [toddhalfpenny](https://wordpress.org/support/users/toddhalfpenny/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/create-shortcode-for-categories-widget/#post-1804910)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
