Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi,
Yes, you can do that.
To move the labels from left to top, you can add some CSS to your theme (in the Customizer > Additional CSS):
.rwmb-label, .rwmb-label ~ .rwmb-input { width: 100%; }To translate the labels, there are some ways to do that:
Method 1: translate the plugin using the Loco Translate plugin. Please follow this instruction.
Method 2: translate the plugin by overwriting the template files. Please follow these steps:
- Create a folder
mb-frontend-submissionin your theme.
- Copy template files for Title, Content, ... that you want to change from MB Frontend Submission'stemplatesfolder to the newmb-frontend-submissionabove, keeping the same folder structure.
- Modify the new template files, change the field name to something else if you want.Then save those files.
Cheers,
AnhDecember 23, 2017 at 3:43 PM in reply to: Show posts in select_advanced dropdown ordered by name #7960Anh Tran
KeymasterThat's a little bit weird cause
post_typecan be either string or array. I will keep digging into this and see what happens.Anyway, glad that it resolves your problem.
Merry Christmas.
Anh Tran
KeymasterNo problem :). If you find anything confused or need help, please just post here. I will try my best to explain it the easy way.
Merry Christmas!
Anh Tran
KeymasterI got it.
I think you can do like this:
- Create a page for editing the posts (let's say page A) and paste the shortcode to the page content.
- In any post, create a link to the page A, passing thepost_idparameter via query string, like this:$link = home_url( '/page-a/' ); $link = add_query_arg( 'rwmb_frontend_field_post_id', get_the_ID() ); echo '<a href="', $link, '">Edit this post</a>';December 22, 2017 at 11:01 PM in reply to: Show posts in select_advanced dropdown ordered by name #7946Anh Tran
KeymasterPlease try adding a parameter
’suppress_filters’ => true(orfalse) to thequery_args. I read about this param somewhere but couldn’t find the correct post.December 22, 2017 at 4:40 PM in reply to: problems with parent page selection with post field. #7940Anh Tran
KeymasterSorry, I forgot to bump the version 1.2.1 on the website. Please just update the MB Frontend Submission again.
Anh Tran
KeymasterHi,
We've been working on this bug and completed rewrite the logic. Our tests run well. However, we want to test more before releasing. So @toddmckee can you please posts your code here for testing?
December 22, 2017 at 11:10 AM in reply to: problems with parent page selection with post field. #7936Anh Tran
KeymasterHi,
I've found the bugs in both Meta Box and MB Frontend Submission. The new version for MB Frontend Submission has just been released. And the fix for Meta Box is available on Github, I will release new version soon.
December 22, 2017 at 9:21 AM in reply to: Show posts in select_advanced dropdown ordered by name #7935Anh Tran
KeymasterI've tested again with a custom post type "Book" and it works for me:
https://imgur.elightup.com/aYVSoZ0.png
Here is my code:
add_filter( 'rwmb_meta_boxes', 'your_prefix_post_demo' ); function your_prefix_post_demo( $meta_boxes ) { $meta_boxes[] = array( 'title' => __( 'Post Field Demo', 'textdomain' ), 'post_types' => 'book', 'fields' => array( array( 'name' => __( 'Post', 'textdomain' ), 'id' => 'post', 'type' => 'post', 'post_type' => array( 'book' ), 'field_type' => 'select_advanced', 'placeholder' => __( 'Select an Item', 'textdomain' ), 'query_args' => array( 'post_status' => 'publish', 'posts_per_page' => - 1, 'order' => 'ASC', 'orderby' => 'name', ), ), ), ); return $meta_boxes; }Do you run any plugin that modifies the query? Such as WPML?
Anh Tran
KeymasterHi,
The
stdis used to the field value. I think it's not the right element to use to create the statistics. Can you try using the hidden fields' IDs? They're dynamically changed when a new clone is created and unique.Anh Tran
KeymasterHi Todd,
Thanks for your feedback. It's actually a bug in the plugin. I've just released the new version. Please update and let me know if you still see it happens.
Anh
December 21, 2017 at 9:46 AM in reply to: Show posts in select_advanced dropdown ordered by name #7922Anh Tran
KeymasterHi,
I've just checked again and the query returns the correct order. Here is what I have:
https://imgur.elightup.com/govniwQ.png
Do you run any code that hook to the query?
Anh Tran
KeymasterHi,
I've just updated the extension, added "current" value for "post_id" parameter.
I also added dynamic population for shortcode params via query string and hooks. I think it's useful and you can use them somehow. Please refer to the documentation for more details.
Anh Tran
KeymasterHi,
The
taxonomyfield doesn't save its value in the database. Instead, it assigns terms to posts. That's why you see both fields display the same value.To make it saves different values, please use
taxonomy_advancedfield.For more info, please see this docs.
December 20, 2017 at 2:51 PM in reply to: problems with parent page selection with post field. #7906Anh Tran
KeymasterHi,
Can you please send me the test login via Contact form? I'll check it for you.
Thanks
Anh -
AuthorPosts