Hi i want to use the metaslider / metaboxes on a custom post type. How can i implement this?
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.
Hi i want to use the metaslider / metaboxes on a custom post type. How can i implement this?
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Have a different question or issue?
Start New Thread
Replies
2Hi Patrick
If you dive into /inc/metaslider.php line 70 you’ll see the metabox being created. “page” is what it’s being added to. This is totally untested but perhaps try the following in the functions.php file of your child theme:
function vantage_child_metaslider_page_setting_metabox(){ add_meta_box('vantage-metaslider-page-slider', __('Page Meta Slider', 'vantage'), 'vantage_metaslider_page_setting_metabox_render', 'custom_post_type', 'side'); } add_action('add_meta_boxes', 'vantage_child_metaslider_page_setting_metabox');Change custom_post_type to your post type.
Because this is untested, please don’t add the above without having FTP access open. If it fires an error you’ll need to revert to the previous version of your child theme functions file.
Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.