Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi Phaidonas,
Your code looks incorrect. You use
press_groupas a group ID, but in your code it's the meta box ID. Besides, it's cloneable. I've fixed it here: https://pastebin.com/0xBn7vC2. Please take a look.
@jacek: we are aware of that bug and fixing it. We'll update the new version soon this week.Anh Tran
KeymasterHi, when a meta box is a draft, the submit button will have the text "Publish". Click that button will change the status from draft to publish.
Anh Tran
KeymasterHi,
Thanks. I'm good ๐
Regarding the video field, when getting from the group, it's just the IDs of the uploaded videos. To output the videos, you can do like this:
<?php foreach ( $facilities_videos as $facilities_video ) { $facilities_video = RWMB_Video_Field::file_info( $facilities_video ); ?> <video src="<?php echo $facilities_video['src']; ?>"> <?php } ?>Anh Tran
KeymasterIt probably will take some days. If that's urgent for you, you can use Custom Attributes to add an attribute
requiredwith valuetrueto the field. That will make the field required.Regarding conditions, yes, you should use the Builder to build that. It supports all conditions. If you need to do some extra check (like conditions outside meta boxes), then you need to tweak the code a little bit.
March 12, 2018 at 1:55 PM in reply to: โ Conditional Logic not seems working with multiple metaboxes on front-end #8788Anh Tran
KeymasterHi Jason,
Can you post the full code of the 2/3 fields that have the conditions to check?
Anh Tran
KeymasterHi Jason,
I've just checked the heading field and it's all fine. Can you take a screenshot of the console before the closing
</form>tag, so we can see which field closes the div incorrectly?Anh Tran
KeymasterHi, yes, that option is on the plan. We've just updated the UI, and now we'll scan all the settings again and added those options to the plugin. Please give us some time to update.
March 12, 2018 at 11:29 AM in reply to: โ How can I create a settings page like the MB About Page? #8780Anh Tran
KeymasterThe whole code for that part is available on Github. I'll write a tutorial for that later.
March 9, 2018 at 11:00 AM in reply to: in post field i can see only select, and select advanced field types with Builde #8753Anh Tran
KeymasterFYI, it's now fixed. Please update.
Anh Tran
KeymasterFYI, it's now updated. Please check and let me know how it goes.
March 9, 2018 at 10:59 AM in reply to: โ i cant change metaboxes status to draft They are always on publish state. #8751Anh Tran
KeymasterThe status for meta box is now supported. Please update.
Anh Tran
KeymasterNo problem.
Here is the process of creating the storage for meta box and its fields:
- When a meta box is created, a storage will be created for it. The function
rwmb_get_storage()will handle the creation.
- Therwmb_get_storage()uses a filterrwmb_get_storagethat allow extensions to change the storage. That's where the MB Custom Table filters and change the storage to work with post meta to the one works with the custom table. In this filter, the whole meta box settings is passed, so extensions know thestorage_typeand table name.
- After the creation, this storage will be added to all fields in the meta box via$field['storage']parameter.
- When working with the meta value (get/save), this storage will be use like$field['storage']->get()and$field['storage']->update().So, storage is kind of the abstract layer between the code and the database. And that can be changed with filters.
That's how the plugins work. If there's something unclear, please let me know.
Anh Tran
KeymasterYes, that's right.
Anh Tran
KeymasterThanks for bug report. It's just fixed on Github.
Anh Tran
KeymasterHello Christoph,
I've just tried to debug that, here is my similar code: https://imgur.elightup.com/gh4PTcA.png
And here is how it appears in the frontend: https://imgur.elightup.com/sYO8S4U.pngCan you take a screenshot of your full code?
-
AuthorPosts