Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterCan you please give more details? I'm not sure what you're going to do.
January 31, 2016 at 2:58 PM in reply to: Using MetaBox Group with MB Term_Meta and programmatically writing MB Term_Meta #2249Anh Tran
KeymasterUsing
get_term_metais correct. The helper functionrwmb_metadoesn't work for term meta as it uses different API. I decided to use native WP function to get field's value.I think the 2nd nested array is created when you use
get_term_metawith the 3rd parameter set tofalse(which is default). Try using this:$values = get_term_meta( 'term_id', 'field_id', true );PS: I'm working on the group extension to make it works with Term Meta extension.
January 31, 2016 at 2:53 PM in reply to: Difference between "taxonomy" and "taxonomy_advanced" #2248Anh Tran
KeymasterThey're mostly the same except 1 point:
taxonomyassigns terms to posts whiletaxonomy_advancedsaves terms' IDs to post meta. One uses WP functionality and one uses post meta to store the value.Anh Tran
KeymasterTemplate files are PHP files inside your theme such as:
single.php,page.php. You can learn more about WP template files here.If you are not familiar with PHP to add code to template files, you can use shortcode to output the meta value in the post content. Simply add:
[rwmb_meta meta_key="FIELD_ID"]into your post content and you'll see it's displayed in the frontend when you view the post. For more information about the shortcode, please read this documentation.
Anh Tran
KeymasterDo you use
rwmb_metafunction in the template files to view the meta data?Anh Tran
KeymasterI'd like to add some debug code to check why that happens. Can you please send me the FTP info?
January 29, 2016 at 5:27 PM in reply to: Using MetaBox Group with MB Term_Meta and programmatically writing MB Term_Meta #2235Anh Tran
KeymasterHi,
1. Let me check the group extension with term extension again to see if I can replicate the bug.
2. In order to add data programmatically, the data must match the format of clone group. It should be:array( array( 'field_1' => 'value 1', 'field_2' => 'value 2', ... ), array( 'field_1' => 'value 1', 'field_2' => 'value 2', ... ), ... )Anh Tran
KeymasterI received the info. I also deleted the message cause it's a private data.
Just one question: is that a Multisite and you're a super admin?
Anh Tran
KeymasterCan you give me an admin account to look closer (via the contact page)? I couldn't replicate on my localhost and my websites.
Thanks
Anh Tran
KeymasterHmm, if the field is clone, the
rwmb_metafunction will display an unordered list of embed videos.Can you try with the development version on Github?
Anh Tran
KeymasterIt will show the embed HTML, for example: the video player if that's a Youtube URL.
Anh Tran
KeymasterHi Clement,
Currently it's not possible. I'm thinking about that and hopefully will make some improvements in the next version.
Anh Tran
KeymasterAre you the admin of the website?
Anh Tran
KeymasterI think it's possible to get gravity forms when register meta boxes. The hook
rwmb_meta_boxesfires atadmin_initand at that time everything is ready. You can use$wpdbto query the database to get the data you need and put it in theoptionsparameter.Anh Tran
KeymasterHi, why don't you just register all values when defining the field? What is your case when you need to fill the advanced select with custom values?
PS: I will add a search box to the forum ๐ Thanks for the idea.
-
AuthorPosts