Forum Replies Created
-
AuthorPosts
-
AnLip
ParticipantI got an answer from GridBuilder support that I'd need to add the post ID to the shortcode.
They gave me an example for ACF : [acf field="field_name" post_id= "{{ post.id }}"]So I suppose it would be for MB : [mbv name="wpgb-card-meta" post_id= "{{ post.id }}"]
But it's still not working.
AnLip
ParticipantHi. I'm having the same issue. I want to display on a WPGB card three MB custom fields with text in between :
{{cf_type}} of {{cf_surface}} square meters, in {{cf_city}}
and should display :
House of 200 square meters, in Berlini created a MB View that works fine on a Single Template, but does not work on a WPGB card. WPGB support only refers to creating a "custom block" but won't help further. They have documentation here https://docs.wpgridbuilder.com/resources/filter-blocks/ and I tried adapting one of their code examples ("email block") to this :
<?php function register_custom_field_email_block( $blocks ) { // "custom_field_email_block" corresponds to the block slug. $blocks['custom_field_email_block'] = [ 'name' => 'MG - Infos Projet', 'render_callback' => 'render_custom_field_email_block', ]; return $blocks; } add_filter( 'wp_grid_builder/blocks', 'register_custom_field_email_block' ); function render_custom_field_email_block() { // Object can be a post, term or user. $object = wpgb_get_object(); // If this is not a post (you may change this condition for user or term). if ( ! isset( $object->post_type ) ) { return; } // You have to change "custom_field_name" by yours. echo do_shortcode('[mbv name="wpgb-card-meta"]'); } ?>But it doesn't work, however I use the shortcode in WPGB card (whether inserting raw HTML and using the shortcode, or whether using the created custom block. Either way, the intermediate text displays ("... of ... square meters, in ...") but not the custom field values.
November 9, 2022 at 3:19 PM in reply to: ℹ️METABOXERS! Help get OxygenBuilder integration by upvoting this github issue #39022AnLip
ParticipantWouldn't it be time to un-pin this from the top level of the forum ? I believe MB is now properly integrated with Oxygen, isn't .
AnLip
ParticipantIn the meantime, I found this CSS trick here : https://github.com/soflyy/oxygen-bugs-and-features/issues/1684
.your-class a { pointer-events: none; }
AnLip
ParticipantHi Long, it apparently fixed the issue : the field group meta box does not appear anymore where it is not supposed to.
Am I right to assume that you fixed it by manually adding "post" to "post_types" ? Was there a corruption of the code that removed the post type, causing the meta box to appear in unusual places ?
"meta_box": { "title": "Médias-Photos-Fields", "id": "medias-photos", "post_types": [ "post"Thanks a ton for your help anyways !
AnLip
ParticipantHi Long, Thank you for your answer. Please find attached two field groups that have the same issue (all of my 10 field groups actually have this issue).
https://pastebin.com/1hA4Qa8rAnLip
ParticipantHi Long,
That worked, thanks a lot.
PHP is black magic to me, sorry.
AnLip
ParticipantThanks Long. That worked.
Note for others : the value "3" on the screen capture you linked to, must correspond to the ID of the taxonomy's value ("Yes" in my case).
For the record : I finally decided to create two "Radio list" values for the taxonomy ("Visible") : "Yes" and "No". The portfolio grid on the welcome page queries all posts that have the "Yes" taxonomy value. This way the client can decide if the post will show on the Home page of his website.
AnLip
ParticipantThanks Long. No my setup is different, I expressed badly : my field type is a "Taxonomy" with a "Field Type" of "Checkbox list".
If I tick the checkbox in the post edit page it will show in a grid querying the taxonomy associated. If the checkbox is not checked, then it will not appear on the grid.
I would like to know how to have this checkbox checked by default.Visible here : https://pasteboard.co/P7I7swREVXOH.png
AnLip
ParticipantHi Long.
Taxonomy behaviour seems to have changed. Can you confirm there has been a fix to the Taxonomy not registering mentioned above ?AnLip
ParticipantHi.
Please let me give you access to the website in private because there is a problem with the way Taxonomies are working at the moment. I do not understand how a user can add taxonomy values (whether in frontend or backend, adding values doesn't work), they just do not register anywhere. I am confused as to whether the user should be adding taxonomy values in a custom field (Taxonomy Advanced) linked to an custom Taxonomy, or if they should be adding the value in the edit page Meta Box (WP native Meta Box, not the MB plugin) on the right side. Either way, this is way too confusing...You could also look into this issue that I have never been back to you about (you asked for access) :
https://www.facebook.com/groups/metaboxusers/posts/999714250646219December 2, 2021 at 7:24 PM in reply to: ✅Show "last update" instead of "date" on user dashboard #32365AnLip
ParticipantHi Long, could you please explain how to use a custom field (date picker) to show in the date column ?
Also, do you intend on adding more columns/actions to the frontend dashboard one day ? It would be great for example to be able to reorder the posts with a simple drag and drop... that would make MB dashboard a really cool tool !AnLip
ParticipantHi Kelly, could you please elaborate a little about the technique you found ?
Are you using Oxygen Builder ? Can you please copy the entire shortcode/PHP you used and say exactly where did you place it ?
I am trying to have Dashboard work on a website but I still get the same error message as others.
AnLip
ParticipantHi.
Any update on the dashboard error that every Oxygen user seems to get ? I am getting DESPERATE for this to work, after long talks about it. Oxygen Builder has released their 3.9 RC 1 and the error remains. Are you working on this for the MANY Oxygen users that purchased your plugin ?
Thanks in advance for letting us know ! I will also post on the FB page.AnLip
ParticipantCould using the "old" technique temporarily solve our problem ?
-
AuthorPosts