Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,981 through 1,995 (of 3,839 total)
  • Author
    Posts
  • PeterPeter
    Moderator

    Hello,

    You can use this plugin to switch taxonomy for terms https://wordpress.org/plugins/taxonomy-switcher/

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

    @DustinD: Your issue looks different from other ones. The fields are removed from the field group. You may double-click on the Update button of the field group and the fields are lost. If the issue happens with other field groups, please share your site credentials here https://metabox.io/contact/
    I will take a look.
    Note: we do not support older versions of MB plugins.

    @Kara: Please try to bypass the sanitization of the field and add only text to the field, save the post and check the issue again. Following the documentation https://docs.metabox.io/sanitization/

    PeterPeter
    Moderator

    Hello,

    I see you have a similar question in the past https://support.metabox.io/topic/add-fallback-image-when-there-is-no-featured-image/
    You can modify the admin column of the file_upload field with the filter hook rwmb_the_value to display the image instead of using a custom admin column.

    PeterPeter
    Moderator

    Hello,

    What is the translation plugin you use to translate the text? I use WPML to translate it and it works as well on my demo site.

    in reply to: Display MB View shortcode in an Elementor loop template #44339
    PeterPeter
    Moderator

    Hello,

    It is possible to use MB View shortcode to get the relationship of the post, add the View shortcode to the loop item and show related posts. You can use the WordPress function get_the_ID() to get the post ID of the current post in the loop. Then get the relationship based on the post ID.

    For example: I have a relationship between 2 CPT: from Post to My Job, relationship ID post-to-job and I'm using the Elementor widget Loop Grid to show a list of posts and related job posts. The sample View code:

    {% set current_post_id = mb.get_the_ID() %}
    
    {% set args = { post_type: 'my-job', relationship: { id: 'post-to-job', from: current_post_id } } %}
    {% set job_posts = mb.get_posts( args ) %}
    {% for job_post in job_posts %}
      Related Job: {{ job_post.post_title }} <br />
    {% endfor %}
    in reply to: Using Metabox to Create a Knowledge Base #44338
    PeterPeter
    Moderator

    Hello Brent,

    In your case, Meta Box helps you to create custom post types and you can create more articles under that post type, like the Post of WordPress. You will need to use other plugins or custom code to show them in the frontend, search, filter, optimization ...
    Instead of creating everything from scratch, you can use some Knowledge Base plugins and focus only on building content, output arciles in the fronted is easier.
    https://www.wpbeginner.com/showcase/best-knowledge-base-plugins-for-wordpress-compared/

    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.

Viewing 15 posts - 1,981 through 1,995 (of 3,839 total)