Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,876 through 1,890 (of 3,728 total)
  • Author
    Posts
  • PeterPeter
    Moderator

    Hello,

    Do you see the term slug in the URL when clicking on the number of posts in the term table? Like this

    wp-admin/edit.php?topic=client-facing&post_type=member-content

    Please check if there is another taxonomy that has the same slug topic on your site and try to deactivate all plugins except Meta Box plugins, switch to a WordPress theme and check this issue again.

    in reply to: lock custom field changes #44336
    PeterPeter
    Moderator

    Hello Luigi,

    Do you mean prevent changes in the field group? If yes, there isn't an option to do that. Any administrator can edit a field group. If you don't want a user editing a field group, please set them as Editor.

    in reply to: How move WordPress general posts to MetaBox Custom Posts? #44335
    PeterPeter
    Moderator

    Hello,

    You can use the plugin https://wordpress.org/plugins/post-type-switcher/
    to change the post type of any post.

    in reply to: How can I pre-populate fields in new frontend submission? #44316
    PeterPeter
    Moderator

    Hello Phil,

    I think it is possible. You will need to register the relationship by code to use the select field and some jQuery code to pre-select the dropdown value. For example:

    Code to register the relationship:

    MB_Relationships_API::register( [
        'id'   => 'tramp_detail_to_tramp_log',
        'from' => [
            'object_type'  => 'post',
            'post_type'    => 'tramp-detail',   
            'field' => [
                'field_type' => 'select',
            ]
        ],
        'to'   => [
            'object_type'  => 'post',
            'post_type'    => 'tramp-log',        
            'field' => [
                'field_type' => 'select',
            ]
        ],
    ] );

    jQuery code:

    jQuery(document).ready(function($) {
        //get the ID from the URL and assign it to "value"
        $('#tramp_detail_to_tramp_log_to option[value=123]').attr('selected', 'selected');     
    });

    you can change tramp_detail_to_tramp_log_to to tramp_detail_to_tramp_log_from depending on the relationship side.

    Note: the code is for example. If you cannot complete the task, please contact an expert developer to help you in this case.

    in reply to: [Single Blog Post Template in MetaBox] #44315
    PeterPeter
    Moderator

    Hello Shree,

    Now I see the single post team member displays as well, screenshot https://imgur.com/YhSaR1t

    You can use a builder plugin like Elementor, Beaver ... to create the layout for the single post page.

    in reply to: Relationships weight / query caching #44314
    PeterPeter
    Moderator

    Hello,

    The relationship injects the relationship parameter to the WP Query of WordPress and its data from a custom table so I think it won't affect the performance significantly. You can try using a caching plugin to cache the query like WP Rocket or Redis Object Cache to prevent high consumption on your site.

    Let me know how it goes.

    in reply to: Custom WordPress folder structure and file upload #44309
    PeterPeter
    Moderator

    Hello,

    I will inform the development team to consider supporting this feature in future updates.

    Thank you.

    in reply to: Multiple conditions do not apply #44308
    PeterPeter
    Moderator

    Hello,

    Regarding the nested condition, the development team is still working on this issue and it looks more complicated. Hopefully, it will be fixed soon.

    Thank you.

    PeterPeter
    Moderator

    Hello,

    No, I don't suggest using the textarea or text field. I mean the tab Text of the WYSIWYG field, screenshot https://imgur.com/MS48uVF

    It is the input field textarea of the WYSIWYG field, the Visual tab hides the input field and the validation doesn't jump to the input field as you see.

    PeterPeter
    Moderator

    Hello,

    Unfortunately, there isn't an option to use the old way to add terms. If you restrict access to the dashboard from frontend, you can consider disabling this option.

    in reply to: Multiple conditions do not apply #44299
    PeterPeter
    Moderator

    Hello,

    i can get only one of the conditionals to work, it is obvious based on your condition.

    The field inherit_event_contact_details_from_desc is hidden when page_template is template-desc.php:

        [
          'id'        => PREFIX . 'inherit_event_contact_details_from_desc',
          'name'      => __('Kontakt überschreiben', NAME_SPACE),
          'type'      => 'switch',
          'style'     => 'rounded',
          'on_label'  => __('Ein', NAME_SPACE),
          'off_label' => __('Aus', NAME_SPACE),
          'label_description' => __('Überschreibt die Kontakdaten der Termin-Beschreibung', NAME_SPACE),
          'hidden'  => [
            ['page_template', 'template-desc.php']
          ]
        ]
    

    If you set the condition of the field event_link_text displayed when the field inherit_event_contact_details_from_desc is true and page_template is template-desc.php, one condition will not work.
    Because if page_template is template-desc.php, the field inherit_event_contact_details_from_desc is hidden and you cannot switch on/off the field.

    Also, please notice that the nested conditional logic is not working correctly. That means if the field event_link_text is shown/hidden based on the field inherit_event_contact_details_from_desc value and the field inherit_event_contact_details_from_desc is shown/hidden based on another condition, the condition of the field event_link_text will not work correctly. Refer to this topic https://support.metabox.io/topic/or-logic-not-working/

    PeterPeter
    Moderator

    Hello,

    Currently, Meta Box supports scrolling to the input field if the setting required = true and the field is empty. For the WYSIWYG field, the input field textarea will display if you switch to tab Text and you can see the browser scrolling to the field as well.

    in reply to: Custom WordPress folder structure and file upload #44297
    PeterPeter
    Moderator

    Hello,

    No, Meta Box file field only works with the WordPress root folder ABSPATH. It doesn't work if you define the folder outside of WordPress root.

    in reply to: Get posts with no relationship #44286
    PeterPeter
    Moderator

    Hello,

    This is an interesting question. Currently, we don't have a setting to get posts that don't have a connection. I suggest you try to create a custom code to do that:

    1. Create an SQL query: get the post ID from the column from or to based on the relationship ID. You will have an array of posts that have a connection.

    2. Create a WP Query and pass the array to the argument post__not_in. Read more about this argument in the documentation
    https://developer.wordpress.org/reference/classes/wp_query/#post-page-parameters

    in reply to: CPT Custom Fields Keep Disappearing #44285
    PeterPeter
    Moderator

    Hello Erik,

    That means the created posts and field value in the admin area are removed automatically, is that right? Can you please share some screenshots of the issue?
    You can copy your site to a staging site, then deactivate all plugins except Meta Box, MB extension plugins, switch to a standard theme and let me know how it goes.

Viewing 15 posts - 1,876 through 1,890 (of 3,728 total)