Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 36 total)
  • Author
    Posts
  • Alaan TVAlaan TV
    Participant

    This happens ONLY when the custom taxonomy has custom fields.

    in reply to: Function WP_Object_Cache::get was called incorrectly #39511
    Alaan TVAlaan TV
    Participant

    This is resolved after updating Meta Box AIO to the 1.16.7 version. Thank you!

    in reply to: Disabled radio buttons are editable #39275
    Alaan TVAlaan TV
    Participant

    Thank you, Peter, for the prompt response!

    The disabled fields 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 disabled fields will be reset and lose their values, UNLESS there's a way to pass the original value of the field in the std option.

    Do we have a way to pass the current field value in the definition of the custom field? Something like:

    'std' => this.value,
    
    in reply to: Terms meta are not being deleted after deleting the term #39210
    Alaan TVAlaan TV
    Participant

    Thank 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_termmeta table 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.

    in reply to: Admin columns are not working with subfields #39165
    Alaan TVAlaan TV
    Participant

    Is there any expected time to get this addition released, please?

    in reply to: Function WP_Object_Cache::get was called incorrectly #39158
    Alaan TVAlaan TV
    Participant

    Just 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.

    in reply to: Admin columns are not working with subfields #38980
    Alaan TVAlaan TV
    Participant

    That's right, is there any page to upvote feature requests, or submit new feature requests?

    in reply to: Meta Box admin menu is visible for none admins #38979
    Alaan TVAlaan TV
    Participant

    Isn'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?

    in reply to: Password field not encrypting password #38806
    Alaan TVAlaan TV
    Participant

    Hi,

    It's been more than 19 months since this ticket was opened.

    I've opened a case to encrypt password sub-fields before saving them in DB, but this fix will be enough and do the job if you support encrypting password sub-fields.

    When do you plan to consider supporting encrypting password sub-fields?

    I hope it's very soon 🙏🏻.

    Best Regards,

    in reply to: Using the filterable option with regular fields #38801
    Alaan TVAlaan TV
    Participant

    Hi,

    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?

    in reply to: Add an element #37527
    Alaan TVAlaan TV
    Participant

    I tried to use the wp_title hook, but it seems not working.

    Any other option to do it without JS? Or not to esc_html the title?

    Alaan TVAlaan TV
    Participant

    Just 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 value attribute. Once we select the video file, the value attribute is added to the <input> tag with no value, but after the video is fully uploaded and the attachment post is created, the value attribute is not getting updated.

    Alaan TVAlaan TV
    Participant

    Hi 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!

    in reply to: Strange behavior of some fields options #36703
    Alaan TVAlaan TV
    Participant

    Thank you for the hint!

    I managed to resolve it using the std option, 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.

    in reply to: custom post type capabilities #36161
    Alaan TVAlaan TV
    Participant

    I 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 custom option 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?

Viewing 15 posts - 16 through 30 (of 36 total)