crowdfavorite / wp-post-formats

An admin interface and structured post meta for WordPress post formats.
363 stars 78 forks source link

Opening the 'New Post' screen with a tab pre-selected #27

Open clarklab opened 11 years ago

clarklab commented 11 years ago

Is there a provided way to launch the 'New Post' screen with a certain tab already selected? I'm about to just write a tiny action that inserts some jQuery to click() on the tab I want, based on a URL parameter, but I thought I should ask here first.

It seems like a super handy feature that others might want. I'll be using it to make a 'wizard' type screen that first asks the user what type of content they'd like to enter. If they pick gallery, I'd like to load the new post screen with Gallery pre-selected.

Thoughts?

(And thanks for this kickass plugin)

clarklab commented 11 years ago

I've got it working, I just figured you guys could do it even better: https://gist.github.com/3932502