Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • in reply to: MB Group Skin Elementor doesn't work in latest version #47003
    Chris PChris P
    Participant

    Ni I rolled back the version of meta box and noiw it works again

    Chris PChris P
    Participant

    Same here, although not every shortcode seems affected. Bit of a hit and miss situation.

    in reply to: Fatal error Meta Box AIO. #39776
    Chris PChris P
    Participant

    Thanks, fixed indeed!

    in reply to: Googlemap field not working in view #38763
    Chris PChris P
    Participant

    Hi after updating,

    My solution doesn't work anymore. But the standard map still doesn't work

    I get the following error
    ReferenceError: google is not defined

    In the backend everything works fine in the front nothing shows up

    I use {{ post.office_address.map_google.rendered }} to display it

    Br,
    Chris

    in reply to: Googlemap field not working in view #37301
    Chris PChris P
    Participant

    UPDATE

    ok these do not work:

    {{ mb.render_map( post.office_address.map_google ) }}
    
    {{ mb.rwmb_meta( 'post.office_address.map_google') }}

    This does work

    in functions.php

    function my_map() {
        $group_values = rwmb_meta( 'office_address' );
        $args = array(
            'api_key' => 'GOOGLE API CODE'
        );
        echo RWMB_Map_Field::render_map( $group_values['map_google'], $args );
    }

    in view
    {{ mb.my_map() }}

    in reply to: Googlemap field not working in view #37298
    Chris PChris P
    Participant

    Hi Long,

    Yes it's the map is a subfield of the address group

    This is the map {{ mb.render_map( post.office_address.map_google ) }}

    In the backend it displays in the frontend it's an empty space

    in reply to: Querying Terms From Multiple Taxonomies #36977
    Chris PChris P
    Participant

    Super thx!

    in reply to: Querying Terms From Multiple Taxonomies #36935
    Chris PChris P
    Participant

    This is what I got so far

    
    {% set termGroup = mb.get_the_terms( post.ID, 'productgroup' ) %}
    {% set termType = mb.get_the_terms( post.ID, 'placement-type' ) %}
    
    {% set args = { post_type: 'radiator', posts_per_page: -1, tax_query: [{ relation: 'AND', taxonomy: 'productgroup, placement-type', field: 'slug', terms: termGroup[0].slug, termType[0].slug }]  } %}
    
    {% set posts = mb.get_posts( args ) %}
    
    {% for post in posts %}
    ...
    {% endfor %}
    
    in reply to: Displaying shortcodes in title or other fields #36616
    Chris PChris P
    Participant

    The other fields work so does post.post_title, but only when it isn't populated by a shortcode
    Removing the arguments give me the same results

    So when the post title is 'this is a title' it works and shows up in the loop and everywhere else
    but when I enter [CONTENTPREPARE id = "104664"] in the post title field it renders everywhere but not in that loop when using {{ post.post_title }}

    In another view displaying the title filed with {{ post.title }} works regardless if it's populated by a string or shortcode

    in reply to: Displaying shortcodes in title or other fields #36591
    Chris PChris P
    Participant

    In anoither view where I just use {{ post-title }} to display the titles it works just fine.
    With or without shortcodes being used

    in reply to: Display clone fields inside a relationship loop #36391
    Chris PChris P
    Participant

    Yes correct, that worked like
    a charm. Thanks Long!

    Chris PChris P
    Participant

    Ok thx

    And how do I add it via MB views in twig

    I tried:

    {% set outputter = mb.rwmb_meta(wysiwyg_outputs) %}
    {{ mb.do_shortcode( mb.wpautop(outputter)) }}

    But alas

    Chris PChris P
    Participant

    Hello,

    Can you point me in the right direction as to how I can let the wysiwyg field return content
    Or how I can let the shortcode of that plugin render.

    Many thanks in advance

    Chris PChris P
    Participant

    Did that, they referred to you 😀

    add_filter( 'the_content', array( $this, 'process_tags') );

    So, you (or the post type creator) should make sure that the "content" is returned for the specific post type.

    in reply to: Display post thumbnail of relationship #34572
    Chris PChris P
    Participant

    Hi Long,

    Yes the post title displayed correctly, the thumbnail now does too.
    At first it didn't, no idea what went wrong but it works now with the code above.

    Thanks but this ticket can be closed now

    Regards,
    Chris

Viewing 15 posts - 1 through 15 (of 16 total)