pre_get_posts for custom page builder meta box
pre_get_posts for custom page builder meta box
pre_get_posts for custom page builder meta box
Edit woocommerce product post type
I am doing something very similar, also with Advanced Custom Fields. My project has 2 custom post types; Programs and Exercises. Like your Calendar and Events cpt, I have multiple Exercises linked to each Program. The way I do it is with Post Objects. I add Exercises as field type Post Object, filtered by post … Read more
Add Metabox to settings / options page
It is HTML and Javascript territory. For the image preview, you may need a input type=”file” with accept=”image/*” and onchange event handler for the preview and the javascript getElementById to get the image id to display for preview. Have a look at these examples. For the text preview part here is a fiddle link. It … Read more
Custom Attachment Caption Fields
The answer was much simpler than I thought. $date_meta = rwmb_meta( ‘ls_course-date-3’); echo date(‘jS F, o ‘, strtotime($date_meta));
Sorry to say that I found that was due to a serious internal network problem, the .js/.css files was server damaged and so the editor was not serverd the right way to the browser. Fixing communication problems also fixed this issue. No changes to the code.
Repeatable Fields Metabox with Textarea (or wp_editor)
Meta box are designed to work with Post(s) and Custom post types. However you can make it work on options page if you know what you are doing. Click here for sample code