Support ForumOverwrite Custom Meta Box in child theme to be displayed on CPT – Support Forum https://support.ishyoboy.com/forums/topic/overwrite-custom-meta-box-in-child-theme-to-be-displayed-on-cpt/feed/ Mon, 23 Nov 2026 07:49:55 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/overwrite-custom-meta-box-in-child-theme-to-be-displayed-on-cpt/#post-3241 <![CDATA[Overwrite Custom Meta Box in child theme to be displayed on CPT]]> https://support.ishyoboy.com/forums/topic/overwrite-custom-meta-box-in-child-theme-to-be-displayed-on-cpt/#post-3241 Thu, 03 Jul 2014 09:57:32 +0000 OlalaWeb Hi,

I’m using CPT in a child theme for Boldial and I’m also using Post Format for these CPT.

Consequently, I’d like to use your Custom Meta Box for Post Format for my CPT.

I’ve found this in BOLDIAL > ASSETS > FRAMEWORK > WP > POSTS > custom-meta-boxes.php
add_ishyo_meta_box(‘iyb_meta_post_link’, array(
‘title’ => __(‘Link settings’, ‘ishyoboy’),
‘pages’ => array(‘post’, ‘liens’, ‘sites’),
‘context’ => ‘normal’,
‘priority’ => ‘high’, etc…

I’ve added my CPT slugs (‘liens’ and ‘sites’ and it is working OK :) but it would be delete upon next theme update.

So I’d like to know how to add these conditions to your custom action in my child theme ?

Thank you for your support,

Regards,

Matt

]]>
https://support.ishyoboy.com/forums/topic/overwrite-custom-meta-box-in-child-theme-to-be-displayed-on-cpt/#post-3247 <![CDATA[Reply To: Overwrite Custom Meta Box in child theme to be displayed on CPT]]> https://support.ishyoboy.com/forums/topic/overwrite-custom-meta-box-in-child-theme-to-be-displayed-on-cpt/#post-3247 Thu, 03 Jul 2014 12:44:41 +0000 IshYoBoy Hey,

We just made a little update of the mentioned file and it will be available in the next update – Boldial v1.6

It adds a new filter called ‘ish_metabox_posttypes’ and this filter receives two variables.

1. An array of all post types the current metabox should be registered to.
2. The ID of the current metabox.

So to add your own post type to the list you can add a filter inside your child-theme’s functions.php file. E.g.:

Hope this helps!
Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>