Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterYes, it is. You need to set the
'std' => 1.Anh Tran
KeymasterHi,
There is no options for date formatting. The value users set in the admin area when editing the post is the value you will get and show via the shortcode. If you want to change the format of the displayed date, you have to write the code yourself.
Anh Tran
KeymasterNo, they aren't. These fields are used to show content in the meta boxes only.
Anh Tran
KeymasterThis field type allows you to create a group of text fields. For example you want to store info of a book author with Name, Address, Email, you can define a field set text like in this demo. When getting value with
rwmb_meta, you will receive anarray( 'name' => '...', 'address' => '...', 'email' => '...' ).It's similar to group extension but less flexible.
Anh Tran
KeymasterYes, if field is empty, then the meta is removed for that post to keep the database clean.
Anh Tran
KeymasterYou can use this simple code:
$post_id = isset( $_GET['post'] ) ? $_GET['post'] : ( isset( $_POST['post_ID'] ) ? $_POST['post_ID'] : false );Anh Tran
KeymasterNice solution. This is not supported by the plugin by default and it's nice to know that can be solved with another solution.
Anh Tran
KeymasterThe order you register meta boxes is the order of them when you see. But if you have changed their order by drag and drop them manually, then that order will be saved and used in the future. In that case you need to reorder them manually again.
Anh Tran
KeymasterI was able to test your full code with the FTP details you just sent. However, it looks right in my localhost:

So strange :(. Can you check again, or please send me the URL of your website so I can have closer look?
Anh Tran
KeymasterI got it. The problem is the total columns in the last row does not equal to 12. The last row has a hidden field, which has number of columns 2. Changing it to 12 fixes the bug.
I have updated files via FTP, please take a look.
Anh Tran
KeymasterHi,
Currently, it works for single sites in the Multisite. You can use it to add settings/options for a single site, not for the whole network.
Anh Tran
KeymasterHi again,
Just looked into the code and tested with fields which don't need
idattributes:heading,divider,custom_htmland onlycustom_htmlusesstdto output the HTML content of the field. These fields don't use meta value for anything, thus, theget_post_metafunction is not used.I don't think there's a bug here, or am I misunderstanding you? Can you give more details on what you're trying to do?
Anh Tran
KeymasterThat's it! The Group extension is outdated. Please update to the latest version :). The latest version has fix for this bug.
Anh Tran
KeymasterHmm, can you please post full error message? I need that to see where the error comes from.
Anh Tran
KeymasterCan you post your code? I guess the total of columns on some rows does not equal to 12, can you please check that (especially the last row)?
-
AuthorPosts