Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
Please update the new version of the MB AIO extension to v1.11.5 or MB Views v1.2.0 to check the issue again. Let me know how it goes.
Long Nguyen
ModeratorHi,
Please update the new version of the MB AIO extension to v1.11.5 to check the issue again. Let me know how it goes.
April 22, 2020 at 10:22 PM in reply to: β mb_user_profile_register Form does not show if already logged in #19225Long Nguyen
ModeratorHi,
Thank you, I'm going to open an issue for the developer team to support this option for the register form.
Have a nice day π
April 22, 2020 at 8:44 PM in reply to: β Import data is possible with custom table extensiΓ³n? #19222Long Nguyen
ModeratorHi,
The WP All Import is the best plugin to import/export data for WordPress and we are trying to create a plugin integrate with WP All Import. You can try to create the code to import to the custom table, here are some awesome tuts
https://code.tutsplus.com/tutorials/custom-database-tables-importing-data--wp-28869
https://wordpress.org/support/topic/import-to-custom-table/April 22, 2020 at 3:49 PM in reply to: β Reciprocal relationships do not follow the order of the admin #19220Long Nguyen
ModeratorHi,
Thank you, I'm going to check it out and let you know later.
April 22, 2020 at 2:34 PM in reply to: β mb_user_profile_register Form does not show if already logged in #19218Long Nguyen
ModeratorHi,
Unfortunately, the plugin only supports to register when the user is not logged in. If you want to modify the source code, you can add a condition after
is_user_logged_in()like! current_user_can( 'administrator' )to check if the user is administrator, the form still show up.if ( is_user_logged_in() && ! $this->is_processed() && ! current_user_can( 'administrator' ) ) { esc_html_e( 'You are already logged in.', 'mb-user-profile' ); return false; }Hope that helps.
April 22, 2020 at 11:17 AM in reply to: β Bug with most recent update: Error from WooCommerce Log #19216Long Nguyen
ModeratorHi,
If you are using custom code to create the custom columns with the old version of this plugin, please take a look at this updated documentation
https://docs.metabox.io/extensions/mb-admin-columns/#creating-custom-classand this topic https://support.metabox.io/topic/version-1-50-removed-mb_admin_columns_user-and-mb_admin_columns_post-classes/
to change the class extends
\MBAC\Post.Let me know how it goes.
April 22, 2020 at 11:02 AM in reply to: β Reciprocal relationships do not follow the order of the admin #19215Long Nguyen
ModeratorHi,
You can add the parameters
orderandorder_byto the query to sort the posts. For more information, please follow this documentation
https://developer.wordpress.org/reference/classes/wp_query/#order-orderby-parametersApril 22, 2020 at 10:39 AM in reply to: β One-to-many relationship on "bay_mb_relationships" #19213Long Nguyen
ModeratorHi Robert,
The extension only helps you to create the relation between the posts, but thanks for the idea, I will discuss with the developer team to support the property
'required' => 1to check this box not empty like the required fields.Long Nguyen
ModeratorHi Brian,
If you want to create a search by custom field and display results (posts), follow this documentation,
field1is the ID of the field or column key in the custom table, in the example of the document it would beaddressorphoneoremailand thevalue1is the input value of search form.The code gets post by the custom field which is stored in the custom table should be
global $wpdb; $ids = $wpdb->get_col( "SELECT ID FROM my_custom_table WHERE address = 'input-search-value'" ); if ( empty( $ids ) ) { echo 'There is no posts'; } else { $query = new WP_Query( [ 'post_type' => 'post', 'post__in' => $ids, ] ); // Do something while ( $query->have_posts() ) { $query->the_post(); echo '<a href="'.get_the_permalink().'">'.get_the_title().'</a><br>'; } wp_reset_postdata(); }April 21, 2020 at 3:49 PM in reply to: β Uncaught Error: Call to undefined function rwmb_csv_to_array #19187Long Nguyen
ModeratorHi,
Thank you for contacting us. Hope you are well today.
Could you please let me know how I can replicate the issue? And please turn on debug then let me know full content of the error. You can paste the error content here https://pastebin.com/.
Long Nguyen
ModeratorHi,
It is impossible, the fields show when creating a new post only created by the code or by the Builder (Meta Box -> Custom fields).
The Settings page just likes the post, page, post type ... save the value of the custom fields assigned on. For more information, please follow the documentation
https://docs.metabox.io/extensions/mb-settings-pageLong Nguyen
ModeratorHi,
Because the Meta Box plugin does not support to hide the Custom fields with MB Builder for specific users so the easiest way to avoid other users changing your fields is to copy and add the code to the file functions.php in the theme folder.
The users can create other fields as they want and cannot touch your fields in MB Builder which are created by the code.
For more information, please follow the documentation
https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code
https://docs.metabox.io/online-generator/#step-4-export-code-and-embed-in-your-websiteLong Nguyen
ModeratorHi,
You can use the tab and group as well but when using the Builder, the field tab must be added first. Please see my screen record https://www.loom.com/share/894e1842c81c4f56aaa1d84b75d2bf99
Long Nguyen
ModeratorHi,
You can use the plugin Admin Menu Editor to show/hide the admin menu Post types for specific users.
Hope that helps.
-
AuthorPosts