Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterThank you very much for this! I've just updated the plugin with this fix.
Have a good day.
Anh Tran
KeymasterHi,
I've just updated the bundle, please download again. It now contents latest versions of all plugins.
Thanks for letting me know that!
Anh Tran
KeymasterDo you mean the marker sometimes does not appear or the map? I think with latest version of Tabs extension, the map appears all the time :), but please let me know for sure. I will check the marker, too.
PS: My pleasure to answer to your question at wp.org! Glad that it helped you to know the new way to register meta boxes!
April 3, 2015 at 11:35 AM in reply to: Display metabox content with WPML in the single.php or other php file #724Anh Tran
KeymasterHi,
To display meta value in
single.phpor in any place in the frontend, you just need to use the helper function (rwmb_meta). There is no difference using it for a website using WPML and not using WPML.More info: WPML stores the value of meta fields for translated post (and the translated post itself) separately in the database. We can consider it as a totally different post with full data comes with it.
Anh Tran
KeymasterThanks for your feedback!
I've just updated the Tabs plugin, now it works with Google Maps in hidden tabs. Please update it and let me know.
I will check the question on wp.org and answer it there.
Thank you
Anh Tran
KeymasterCan you try resizing browser and see if the map is loaded?
If yes, then it is a known issue with Google maps which doesn't load when the DOM element is hidden. I will add a JS callback for that if this is the case.
March 27, 2015 at 9:26 AM in reply to: WP_Query with meta_value impossible on cloned data fields (array) ? #702Anh Tran
KeymasterThanks for your idea. It's a good solution for this purpose. I will think about it, maybe I will add hooks which allows us to do that. I will add more details and let's see how it goes.
March 26, 2015 at 11:10 PM in reply to: WP_Query with meta_value impossible on cloned data fields (array) ? #698Anh Tran
KeymasterHi,
This is an good question about how the plugin store post meta in the database. The short answer for your question is "no" and here is why:
When the "clone" feature wasn't born, the plugin stores all meta data in the data base in a WordPress-compatible way, e.g. if field has single value, it will be saved in single row of
postmetatable; if field has multiple values (set by'multiple' => true), each value will be saved in single row of that table. This way you can useadd_post_metaorupdate_post_metafield post's custom fields to retrieve meta value.But when the "clone" feature is born, it's confusing to store each cloned value in a single row of
postmetatable. Because we don't know these are values of clones, or values of the field withmultiple = true. In order to make it work for all field types and for consistency, I decided to store cloned values in an array and store that array in single row in thepostmetatable.So, we can't use
WP_Queryto query based on value of a cloned field directly. I think your solution withforeachloop is a good solution for now.Anh Tran
KeymasterThe version 4.4.3 is now available on wordpress.org. Please update and let me know if you find any bugs.
Thanks!
Anh Tran
KeymasterAh, you're right. I forgot to tell you that the latest version of Meta Box on Github has correct code which supports valid arguments for the filter. I will push it to wp.org so you can update the plugin now.
Anh Tran
KeymasterVersion 1.0.1 now supports changing clone button text. Please update the plugin and follow this guide.
Please let me know if you need any help.
Best regards!Anh Tran
KeymasterYour idea is interesting. At the moment, this feature has not been inplemented. I think it would be done with Javascript attached on the click event and update the Add more button class or disable attribute. I will think more about that and will imform you when it's done.
March 21, 2015 at 11:15 PM in reply to: Error Message: call_user_func() expects parameter 1 to be a valid callb #672Anh Tran
KeymasterYes, that's right. When you want to register fields with type "group", you need to activate MB Group extension, otherwise it will show the error like you saw.
Anh Tran
KeymasterAt the moment, the text for clone button is fixed. I will add a filter for you to change it in next version.
Anh Tran
KeymasterUnfortunately this is not possible at the moment. I'd suggest setting up another meta box for page template and use Include/Exclude extension to show/hide it.
-
AuthorPosts