Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 2,431 through 2,445 (of 3,867 total)
  • Author
    Posts
  • PeterPeter
    Moderator

    Hello,

    You said the field ID is cover_corso but you added the field ID in your code: cover-corso. The attribute of the catalog_post, not post. And I also do not see the code to output the image in the catalog post loop.

    If you are not able to complete the task, please contact us here https://metabox.io/contact/
    Our development team will help you with an extra fee.

    PeterPeter
    Moderator

    Hello,

    So you can use another query to get the related catalog post from the session post ID. For example:

    {% for post in posts %}
    
        {# get the course catalog post #}
        {% set catalog_args = { post_type: 'course_catalog', relationship: { id: 'catalog-to-session', to: post.ID } } %}
        {% set catalog_posts = mb.get_posts( catalog_args ) %}
        {% for catalog_post in catalog_posts %}
            {# get the catalog post image and other info #}
        {% endfor %}
    
    {% endfor %}

    You will need to change the post type and relationship ID with your own, just for example.

    in reply to: get_users() not showing the correct order of relationship #43108
    PeterPeter
    Moderator

    Hello,

    Thanks for your feedback.

    There is an issue with the order of connected users when displaying them in the frontend. I've escalated this issue to the development team to fix it. I will let you know when I have any information.

    in reply to: Display RelationShip Title #43107
    PeterPeter
    Moderator

    Hello Joe,

    If you are on the single product page, you can use the function get_the_title() to get the current product title, assign it to a variable and output it in your code. For example:

    $current_product_title = get_the_title();
    $connected = new WP_Query( [ ] );
    ...
    
    in reply to: How to target a settings page? #43106
    PeterPeter
    Moderator

    Hello,

    I see you use the function get_post_meta() to get the custom field value, so you can use the function get_option() to get the option value (settings page).

    Or use the helper function rwmb_meta(), follow the documentation https://docs.metabox.io/extensions/mb-settings-page/#getting-field-value

    PeterPeter
    Moderator

    Hello,

    You can hover over the long-space area to read the description and click on it to open the field settings, screenshot https://imgur.com/K3DQj0V

    If it does not work, please export the field group to a JSON file, I will import it on my demo site and check the issue. Refer to the documentation
    https://docs.metabox.io/extensions/meta-box-builder/#export--import

    in reply to: Issue with Relationship not displaying connected posts #43104
    PeterPeter
    Moderator

    Hello,

    Can you please share a screenshot of the relationship settings? Are the connected posts saved properly?

    in reply to: hide_from_front does not work with tab #43103
    PeterPeter
    Moderator

    Hello Harald,

    It is a setting in the builder only, works as its name so there isn't documentation about this. I can see the issue on my demo site and I've escalated it to the development team to fix it in the next update.

    in reply to: image.full.width returning wrong value #43095
    PeterPeter
    Moderator

    Hello,

    Please share your site credentials via this contact form https://metabox.io/contact/
    I will take a closer look.

    in reply to: Path to validation language files is incorrect. #43092
    PeterPeter
    Moderator

    Hello,

    I do not see that issue on my demo site. The constant RWMB_DIR should return the path to the meta-box plugin folder /wp-content/plugins/meta-box/.
    You can output the constant RWMB_DIR on your site and see what displayed
    echo RWMB_DIR;

    If it returns /wp-content/plugins/meta-box/js/ then it is the wrong path.

    in reply to: Issue with Relationship not displaying connected posts #43091
    PeterPeter
    Moderator

    Hello there,

    After selecting some connected posts between Developers and Project and reloading the page, you can see the selected posts then the relationship works properly.
    If you have trouble when outputting the relationship post with Bricks Builder, please contact Bricks support to get further assistance. The compatibility feature is maintained on their side.

    PeterPeter
    Moderator

    Hello,

    How do you set a Course Catalog as a parent post of a Course Session? Do you use the extension MB Relationships?

    in reply to: Multiple Dropdown Options for Front-end Display #43089
    PeterPeter
    Moderator

    Hello Johnson,

    How do you output the select field value? When using the loop to output the value, you can add a space between items. For example:

    $values = rwmb_meta( 'my_field_id' );
    foreach ( $values as $value ) :
        echo $value . ' ';
    endforeach
    

    Refer to the documentation https://docs.metabox.io/fields/select/

    in reply to: image.full.width returning wrong value #43082
    PeterPeter
    Moderator

    Hello Liam,

    You can go to the folder /wp-content/uploads/year/month/ and check the actual large dimension (width and height) of the image after uploading to WordPress and being cropped.

    in reply to: Fatal Error #43080
    PeterPeter
    Moderator

    Hello,

    Do you use the View template or custom block on the testing page? If yes, please share the code of the Twig code you used on your site.
    You can also try to deactivate all plugins except Meta Box, MB extension plugins, switch to a standard theme of WordPress and check this issue again.

Viewing 15 posts - 2,431 through 2,445 (of 3,867 total)