Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi,
Unfortunately there's no way to use this extension without using the Meta Box plugin to register meta boxes.
If you're using normal way to register meta boxes as shown in the Codex, you have to write your callback to output the meta box and its content. Thus, everything must be done manually.
If you use the Meta Box plugin, it handles all that work for you, meaning the output of each custom field in the meta box is handled. And only that way, the "Tabs" extension can join the game, e.g. it can help you to change the output to organise fields in tabs.
So, briefly, if you want to show fields in tabs, please install and use the Meta Box plugin first, then follow the documentation of "Tabs" extension to show fields in tabs.
Thank you.
Anh Tran
KeymasterHi, thank you for reporting this. I've just checked your code above and found that it's a bug of the plugin. So I update it, please re-download the plugin (with the same link in your email or your profile page) and re-upload it to your host, overwrite old files.
By the way, I suggest updating the code to register meta boxes to the new style, like this:
<?php add_filter( 'rwmb_meta_boxes', 'trf_meta_boxes' ); function trf_meta_boxes( $meta_boxes ) { $prefix = 'trf_'; $meta_boxes[] = array( 'title' => __( 'Event Details', 'rwmb' ), 'pages' => array( 'page' ), // Register this meta box for posts matched below conditions 'include' => array( 'parent' => array( 4899 ), ), 'fields' => array( array( 'name' => __( 'Event Date', 'rwmb' ), 'id' => "{$prefix}event-date", 'type' => 'text', ), array( 'name' => __( 'Event Time', 'rwmb' ), 'id' => "{$prefix}event-time", 'type' => 'text', ), array( 'name' => __( 'Event Location', 'rwmb' ), 'id' => "{$prefix}event-location", 'type' => 'text', ), ) ); return $meta_boxes; }Thanks.
December 20, 2014 at 4:08 PM in reply to: Can Columns be combined with your new "template" addon? #284Anh Tran
KeymasterHi ebanks,
Yes, the new 'template' extension works with all other extensions.
Best regards
Anh Tran
KeymasterYes, that's exactly what they do.
If you need any help, please let me know ๐
Anh Tran
KeymasterHi Ivo,
These extensions are very similar, but they're different! The difference is Show Hide uses Javascript to show/hide meta boxes immediately when a condition changes (like selecting a page template, choosing post format, selecting category, etc.). That means the meta boxes always presents in the page, they're only shown/hid via Javascript. While the Include Exclude extension completely removes (excludes) the meta box from the page, no toggle effect when you change a condition, to see the meta box again you have to reload the page.
Both extensions are fast. Depends on what you need, you can choose one of them (or both).
Anh Tran
KeymasterHi philvip,
I'm sorry for this inconvenience. Please follow these steps to make the extension work:
1. As an extension is just a WordPress plugin, you need to install it like a normal WordPress plugin by going to Plugins, click "Add new", then click "Upload plugin".
2. Choose the .zip file you downloaded from the download link in your email and click "Install now"
3. After finish upload, click Activate.That's all for installation.
To create tabs for meta boxes (make sure you know how to register meta box and define fields), please follow this documentation (I'll update this docs to cover the installation step above).
If you need any help, please let me know.
Thank you.
Anh Tran
KeymasterHi, thank you for purchasing my include / exclude extension ๐
Regarding your questions:
Q1: Each extension is simply a plugin. So you can install it like a normal plugin by go to Plugin page, choose Add New, then choose Upload and upload the
.zipfile.After uploading, activate it. That's all.
Q2: Yes, that's correct. For more information, please read the documentation.
Q3: To display meta value in the frontend, you should use the function
rwmb_meta(), like this:echo rwmb_meta( 'field_id' );For more information about the function arguments, please read this documentation.
Anh Tran
KeymasterGreat that you find the link. Sometimes it goes to spam or trunk mail box.
If you don't see the link, you can simply go to your profile page in forum and you'll see all download links for products you purchased.
Thanks.
Anh Tran
KeymasterHi,
It's a mistyping bug in the plugin. It's just updated, please re-download the plugin (with the same link in your email or in forum profile).
Thank you for letting me know the bug.
Anh Tran
KeymasterHi,
Can you give me the code you use to register meta box please? I've just tested with the demo code and I see the validation works.
Thanks.
Anh Tran
KeymasterFYI, I've just released a new extension for show/hide meta boxes using Javascript. Check it here:
Anh Tran
KeymasterHi,
You did right. To include the plugin inside themes, just
includethe main plugin PHP file, that's all.This plugin doesn't have the ability to show/hide meta box with Javascript. It uses different approach:
- With Javascript, meta box is still there but hidden. Data is still be processed, which might be redundant
- In this plugin, include means meta box is visible and data is processed. Exclude means no meta box at all, so no data is processed.Using Javascript doesn't really mean "include/exclude" :). It might be something like toggle meta box ๐
-
AuthorPosts