Forum Replies Created
-
AuthorPosts
-
November 22, 2024 at 6:45 PM in reply to: MB Group Skin Elementor doesn't work in latest version #47003
Chris P
ParticipantNi I rolled back the version of meta box and noiw it works again
June 26, 2023 at 2:22 PM in reply to: Shortcodes not working in MB Views after updating to version 1.12.3 #42367Chris P
ParticipantSame here, although not every shortcode seems affected. Bit of a hit and miss situation.
Chris P
ParticipantThanks, fixed indeed!
Chris P
ParticipantHi 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 definedIn the backend everything works fine in the front nothing shows up
I use {{ post.office_address.map_google.rendered }} to display it
Br,
ChrisChris P
ParticipantUPDATE
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() }}Chris P
ParticipantHi 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
Chris P
ParticipantSuper thx!
Chris P
ParticipantThis 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 %}Chris P
ParticipantThe 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 resultsSo 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
Chris P
ParticipantIn anoither view where I just use {{ post-title }} to display the titles it works just fine.
With or without shortcodes being usedChris P
ParticipantYes correct, that worked like
a charm. Thanks Long!April 11, 2022 at 3:04 PM in reply to: ✅Adding and rendering shortcodes from other plugins (eg Tabulizer not working) #35556Chris P
ParticipantOk 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
April 1, 2022 at 3:57 PM in reply to: ✅Adding and rendering shortcodes from other plugins (eg Tabulizer not working) #35400Chris P
ParticipantHello,
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
March 22, 2022 at 11:00 PM in reply to: ✅Adding and rendering shortcodes from other plugins (eg Tabulizer not working) #35216Chris P
ParticipantDid 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.
Chris P
ParticipantHi 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 -
AuthorPosts