41 posts
  • Has been part of the Envato Community for over 1 year
  • Sells items exclusively on Envato Market
  • Located in India
wpcodexthemes says

hello experts,

i have little request to you can say me how can i use metabox for my wordpress theme according to post formats type. i have created post formats type:

‘aside’, ‘video’, ‘gallery’,’quote’,’audio’,’status’,’link’

if any buddy share me your tutorial and code i will thankful to you. i am new in wordpress so i am asking this question. plz help me regarding this issue

1463 posts The Last Man Standing
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been a beta tester for an Envato feature
  • Sells items exclusively on Envato Market
+8 more
ImanGM says

Hi,

I think you should put metaboxes in general and not post-format specific. This is because once a user adds a new post, he doesn’t choose the post format in WordPress UI. So at least in the beginning you can’t find out which post format is active on this post…

By the way, I hope some more experienced users could help you better on this :)

Cheers,
Iman

642 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
ChapterThemes says

You could, In case of the beginning a new post, when you can’t figure out yet what kind of post format it will be, add all metaboxes, and show/hide them with some javascript depending on what post format is selected.

However, when changing a post format on an existing post if you’ve only loaded the needed metabox – then you have to re-save the post first to get the new metabox for that certain post format.

I see a lot of plugins/theme options which show a message that you have to publish or save as concept, before you get to see extra options inside an added metabox – so it’s not idyllic, but no real big issue i guess…

3427 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+1 more
organicbee says

You could, In case of the beginning a new post, when you can’t figure out yet what kind of post format it will be, add all metaboxes, and show/hide them with some javascript depending on what post format is selected.

However, when changing a post format on an existing post if you’ve only loaded the needed metabox – then you have to re-save the post first to get the new metabox for that certain post format.

I see a lot of plugins/theme options which show a message that you have to publish or save as concept, before you get to see extra options inside an added metabox – so it’s not idyllic, but no real big issue i guess…

Another alternative is just hide it with JS when a post format is selected, then it won’t technically go away if they already have content and they can still toggle it via the view if they need it.

642 posts
  • Has been part of the Envato Community for over 3 years
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
ChapterThemes says


You could, In case of the beginning a new post, when you can’t figure out yet what kind of post format it will be, add all metaboxes, and show/hide them with some javascript depending on what post format is selected.

However, when changing a post format on an existing post if you’ve only loaded the needed metabox – then you have to re-save the post first to get the new metabox for that certain post format.

I see a lot of plugins/theme options which show a message that you have to publish or save as concept, before you get to see extra options inside an added metabox – so it’s not idyllic, but no real big issue i guess…
Another alternative is just hide it with JS when a post format is selected, then it won’t technically go away if they already have content and they can still toggle it via the view if they need it.

That’s what i said :)

Second part is about when you don’t add all the metaboxes if a post format is known.

24 posts
  • Has referred 50+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+2 more
quadroIdeas says

The thing to keep in mind here is that as post formats UI is till being developed as time goes by, there is no clear unification of how the post formats should behave regarding user data input. I would try by any means to avoid adding metaboxes for formats until the core is solid around that.

Of course, that is only my opinion and I can think of many cases where that would be really useful. Just adding another optic for looking at this. :)

33 posts
  • Has referred 1+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+3 more
Coffeecream says

Check this plugin: https://github.com/crowdfavorite/wp-post-formats

Maybe that if what you looking for: An admin interface and structured post meta for WordPress post formats.

41 posts
  • Has been part of the Envato Community for over 1 year
  • Sells items exclusively on Envato Market
  • Located in India
wpcodexthemes says

Check this plugin: https://github.com/crowdfavorite/wp-post-formats Maybe that if what you looking for: An admin interface and structured post meta for WordPress post formats.

thanks Coffeecream ,

i will try … and can you tell me have you used this plugin any theme. if you are used this plugin so please show me :)

41 posts
  • Has been part of the Envato Community for over 1 year
  • Sells items exclusively on Envato Market
  • Located in India
wpcodexthemes says

Hi,

I think you should put metaboxes in general and not post-format specific. This is because once a user adds a new post, he doesn’t choose the post format in WordPress UI. So at least in the beginning you can’t find out which post format is active on this post…

By the way, I hope some more experienced users could help you better on this :)

Cheers,
Iman

thanks for reply

33 posts
  • Has referred 1+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+3 more
Coffeecream says

We using it for a long time already, it is in all our recent themes.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by