I’m using WordPress 3.3.1 and trying to figure out how I can modify my sidebar to include a list of all the galleries. I see wp_get_posts and the like…but nothing for galleries?
Leave a Reply
You must be logged in to post a comment.
I’m using WordPress 3.3.1 and trying to figure out how I can modify my sidebar to include a list of all the galleries. I see wp_get_posts and the like…but nothing for galleries?
You must be logged in to post a comment.
Search the posts by content for the string
'[gallery'
. You get an array of posts which you can list then in a widget or in plain PHP code.