Forums

Create shortcode for Categories widget? (4 posts)

  1. vskylabv
    Member
    Posted 1 year ago #

    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!

  2. vskylabv
    Member
    Posted 1 year ago #

    I've found this
    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.

  3. vskylabv
    Member
    Posted 1 year ago #

    Still can't figure this out.

  4. toddhalfpenny
    Member
    Posted 1 year ago #

    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 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!

Topic Closed

This topic has been closed to new replies.

About this Topic