Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi, I think it's not possible. Because the purpose of the builder is letting users create meta boxes and fields for themselves. They will not need to translate to another language.
Anh Tran
KeymasterJust saw your email. Do you want to continue discussing here or via email? If nothing private, I think we should talk here.
Anh Tran
KeymasterHi, can you post your code?
Anh Tran
KeymasterProbably something went wrong when updating like missing files or files were broken. Glad that reinstalling fixes the problem ๐
Anh Tran
KeymasterAh, the demo just shows you lots of option that you can adjust for your real project :). Glad that it works for you now.
Anh Tran
KeymasterThe thing here is the values return from the function
get_term_metais an array of images' IDs. It doesn't return the full info of images like inrwmb_meta. To get full image info, you can use this code:foreach ( $images as $image ) { $image = RWMB_Image_Field::file_info( $image, 'thumbnail' ); echo "<a href='{$image['full_url']}' rel='lightbox'><img src='{$image['url']}' width='{$image['width']}' height='{$image['height']}' alt='{$image['alt']}' /></a>"; }Anh Tran
KeymasterHi, sorry for taking long to reply :(.
Your code is almost correct. It's just not
$cat->$term_id, but$cat->term_id. So the code inside the loop should be:$images = get_term_meta( $cat->term_id, 'image_advanced', false ); var_dump( $images ); // Array of image IDs $color = get_term_meta( $cat->term_id, 'color', true ); var_dump( $color ); // ColorAnh Tran
KeymasterAh, you set
'teeny' => truewhich shows the minimal UI for the editor. Removing it resolves this problem.Anh Tran
KeymasterHi guys, could you please post me the code so I can check it specifically?
Anh Tran
KeymasterBy default, the wysiwyg has everything the default editor has. You need to click to the "Toolbar Toggle" button to show the format selection dropdown, like this:
April 6, 2016 at 1:41 PM in reply to: Some users still getting Fatal error: Class 'RWMB_Core' not found #2676Anh Tran
KeymasterCan you just try including the plugin's file directly without putting it inside the 'init' hook?
Anh Tran
KeymasterI don't think so :(. You purchased the bundle on Sep 30 last year. Since then, 3 premium extensions were added to the bundle (Settings Page, Term Meta and Admin Columns). The price at that time was $79 only.
Anh Tran
KeymasterI've just tested again and it works. A stupid question, but can you post your code again?
Anh Tran
KeymasterThat's the only way I can come up with. I think the solution is quite good for now ๐
Anh Tran
KeymasterHi,
I'm afraid we couldn't make it work simply by modifying query arguments. Since the values are stored in a serialized array in the database, the sorting simply can't work.
I suggest a hack for this: when saving the event times (array), save the first value into another custom field and use that new field for sorting.
Here is a sample code, you should adapt it to your situation:
add_action( 'rwmb_{META_BOX_ID}_after_save_post', 'prefix_add_event_start' ); function prefix_add_event_start( $post_id ) { $times = get_post_meta( $post_id, 'event_start', true ); if ( !empty( $times ) && is_array( $times ) ) { $start = reset( $times ); update_post_meta( $post_id, 'event_start_first', $start ); } }And then modify the query arguments by:
'meta_key' => 'event_start_first', 'orderby' => 'meta_value', 'order' => 'ASC', -
AuthorPosts