admin管理员组文章数量:1406060
I can find some little example on using multiple checkboxes, but no one about using a single checkbox in a wpalchemy metabox. Anyone can help me please?
No docs about this topic on the wpalchemy site..
Thank you
I can find some little example on using multiple checkboxes, but no one about using a single checkbox in a wpalchemy metabox. Anyone can help me please?
No docs about this topic on the wpalchemy site..
Thank you
Share Improve this question asked Apr 11, 2013 at 15:40 Luca ReghellinLuca Reghellin 1,6422 gold badges21 silver badges45 bronze badges1 Answer
Reset to default 0WP Alchemy comes with example files that show the usage of virtually all field types;
Example;
<?php $mb->the_field('cb_single'); ?>
<input type="checkbox" name="<?php $mb->the_name(); ?>" value="abc"<?php $mb->the_checkbox_state('abc'); ?>/>
https://github/farinspace/wpalchemy/blob/master/wp-content/themes/mytheme/metaboxes/checkbox-meta.php#L9
本文标签: how to use a single checkbox with wpalchemy
版权声明:本文标题:how to use a single checkbox with wpalchemy? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744960679a2634634.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论