Forum Replies Created
-
AuthorPosts
-
December 6, 2022 at 6:41 AM in reply to: ✅RWMB_File_Field does not have a method "post_edit_form_tag" #39520
Alaan TV
ParticipantThis happens ONLY when the custom taxonomy has custom fields.
December 5, 2022 at 9:56 PM in reply to: ✅Function WP_Object_Cache::get was called incorrectly #39511Alaan TV
ParticipantThis is resolved after updating Meta Box AIO to the
1.16.7version. Thank you!Alaan TV
ParticipantThank you, Peter, for the prompt response!
The
disabledfields will lose their values on Save! I'm getting the values of these fields from an API and saving them in the DB, and I'm using these fields to show the values ONLY to the CMS users.If the CMS user hit the Save button, all the
disabledfields will be reset and lose their values, UNLESS there's a way to pass the original value of the field in thestdoption.Do we have a way to pass the current field value in the definition of the custom field? Something like:
'std' => this.value,
November 19, 2022 at 4:26 AM in reply to: ✅Terms meta are not being deleted after deleting the term #39210Alaan TV
ParticipantThank you, Peter, for your prompt reply!
I know that WordPress doesn't trash the terms; it deletes them directly. I only mentioned that as a possible reason that the term metadata is not being deleted from the custom table after deleting the term itself.
I will rephrase my question; I have a custom taxonomy that has some custom fields stored in a Custom Table; when I delete a term of that taxonomy, the row that stores the metadata of the deleted term is not being deleted from the custom table.
I tried the same custom taxonomy and fields without using the custom table, and I found that the metadata stored in the default
wp_termmetatable is deleted automatically when the term is deleted.So, there's an issue with the MB Custom Table plugin; it doesn't handle deleting the metadata of the deleted term. And I think it's something that the plugin should take care of because it's the natural behavior of WordPress to delete the metadata of the deleted term.
I hope my question is clear now.
Alaan TV
ParticipantIs there any expected time to get this addition released, please?
November 16, 2022 at 3:48 AM in reply to: ✅Function WP_Object_Cache::get was called incorrectly #39158Alaan TV
ParticipantJust for clarification, this warning comes only when storing the fields in a custom table, it disappears when the
'storage_type' => 'custom_table'option is removed.Alaan TV
ParticipantThat's right, is there any page to upvote feature requests, or submit new feature requests?
Alaan TV
ParticipantIsn't it something that the plugin itself should handle? Either by removing the Metabox menu for all non-admin users, or having a capability to control the roles that can see the menu?
Alaan TV
ParticipantHi,
It's been more than 19 months since this ticket was opened.
I've opened a case to encrypt
passwordsub-fields before saving them in DB, but this fix will be enough and do the job if you support encryptingpasswordsub-fields.When do you plan to consider supporting encrypting
passwordsub-fields?I hope it's very soon 🙏🏻.
Best Regards,
Alaan TV
ParticipantHi,
The integration you've mentioned works only with the PRO version of the Admin Columns plugin, which is an extra cost.
And something else, I'm of the kind that doesn't like to use many plugins to serve the same purpose. I know it could be my problem, but I'm sure many others developers share the same mentality.
I don't want to have all the features that the Admin Columns plugin has in your MB Admin Columns plugin, what I'm looking for is only a basic support to enable filtering regular fields.
I understand that it may involve many changes on the code level to support this feature, but I think it is worth it.
Could you please accept this as a feature request to enable filtering all kinds of fields using only the MB admin columns plugin?
Alaan TV
ParticipantI tried to use the wp_title hook, but it seems not working.
Any other option to do it without JS? Or not to
esc_htmlthe title?July 28, 2022 at 5:53 AM in reply to: ✅An issue with the `file_upload` field when it's required #37241Alaan TV
ParticipantJust another note, we upload videos to the cloud (Amazon S3), and that takes time to get the attachment ID that should be stored in the
valueattribute. Once we select the video file, thevalueattribute is added to the<input>tag with no value, but after the video is fully uploaded and the attachment post is created, thevalueattribute is not getting updated.July 28, 2022 at 4:35 AM in reply to: ✅Can't see the settings page custom fields under Media menu #37237Alaan TV
ParticipantHi Long,
A new release has rolled out before 2 weeks but it didn't include the fix. Do you plan to consider this in the next release?
Many thanks!
Alaan TV
ParticipantThank you for the hint!
I managed to resolve it using the
stdoption, like this:$meta_boxes[] = [ 'title' => 'My settings', 'id' => 'my_settings_id', 'settings_pages' => ['my_settings_page'], 'tab' => 'my_settings_tab', 'fields' => [ [ 'name' => 'My field', 'id' => 'my_field_id', 'type' => 'text', 'std' => get_option( 'my_settings_id' )['my_field_id'], 'disabled' => true, 'save_field' => false, ], ] ]So the value will never be saved to DB, and I'm able now to see the value of the same field safely.
Alaan TV
ParticipantI tried to set
'capability_type' => 'custom'in my custom post type, but I was not able to see the custom capabilities in my Roles and Capabilities plugin.Then, I tried to keep the
customoption and assigned the custom capabilities (that should be generated by the MB plugin) to the Administrator role by code, but I couldn't see the custom post type menu. Like this:$role = get_role( 'administrator' ); $role->add_cap( 'edit_news_post', true ); $role->add_cap( 'read_news_post', true ); $role->add_cap( 'delete_news_post', true ); $role->add_cap( 'edit_news', true ); $role->add_cap( 'edit_others_news', true ); $role->add_cap( 'publish_news', true ); $role->add_cap( 'read_private_news', true ); $role->add_cap( 'read', true ); $role->add_cap( 'delete_news', true ); $role->add_cap( 'delete_private_news', true ); $role->add_cap( 'delete_published_news', true ); $role->add_cap( 'delete_others_news', true ); $role->add_cap( 'edit_private_news', true ); $role->add_cap( 'edit_published_news', true ); $role->add_cap( 'edit_news', true );
Lastly, I tried to access the URL of the post type manually:
/wp-admin/edit.php?post_type=news, but I got the following error message:You need a higher level of permission.
Sorry, you are not allowed to edit posts in this post type.Here's the code I used to create my custom post type:
function register_post_type__news() { $labels = [ 'name' => esc_html('News'), 'singular_name' => esc_html('News Post'), 'add_new' => esc_html('Add New'), 'add_new_item' => esc_html('Add new News post'), 'edit_item' => esc_html('Edit News Post'), 'new_item' => esc_html('New News Post'), 'view_item' => esc_html('View News Post'), 'view_items' => esc_html('View News'), 'search_items' => esc_html('Search News'), 'not_found' => esc_html('No News found'), 'not_found_in_trash' => esc_html('No News found in Trash'), 'parent_item_colon' => esc_html('Parent News Post:'), 'all_items' => esc_html('News'), 'archives' => esc_html('News Post Archives'), 'attributes' => esc_html('News Post Attributes'), 'insert_into_item' => esc_html('Insert into News Post'), 'uploaded_to_this_item' => esc_html('Uploaded to this News Post'), 'featured_image' => esc_html('Featured image'), 'set_featured_image' => esc_html('Set featured image'), 'remove_featured_image' => esc_html('Remove featured image'), 'use_featured_image' => esc_html('Use as featured image'), 'menu_name' => esc_html('News'), 'filter_items_list' => esc_html('Filter News Post list'), 'filter_by_date' => esc_html(''), 'items_list_navigation' => esc_html('News list navigation'), 'items_list' => esc_html('News list'), 'item_published' => esc_html('News Post published'), 'item_published_privately' => esc_html('News Post published privately'), 'item_reverted_to_draft' => esc_html('News Post reverted to draft'), 'item_scheduled' => esc_html('News Post scheduled'), 'item_updated' => esc_html('News Post updated'), 'text_domain' => esc_html('post-type-news'), ]; $args = [ 'label' => esc_html('News'), 'labels' => $labels, 'description' => 'The main post type that is used to create and publish news articles.', 'public' => true, 'hierarchical' => false, 'exclude_from_search' => false, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'show_in_rest' => true, 'query_var' => true, 'can_export' => true, 'delete_with_user' => false, 'has_archive' => true, 'rest_base' => '', 'show_in_menu' => 'edit.php', 'position' => 1, 'menu_icon' => 'dashicons-admin-site-alt', 'capability_type' => 'custom', 'supports' => ['title', 'editor', 'thumbnail', 'excerpt', 'author', 'revisions', 'post-formats', 'sticky', 'featured-avatar'], 'taxonomies' => ['category', 'post_tag', 'topics'], 'rewrite' => [ 'with_front' => false, ], ]; register_post_type( 'news', $args ); }Could you please advise me?
-
AuthorPosts