Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 51 total)
  • Author
    Posts
  • in reply to: MB View - Gridbuilder Card #39400
    AnLipAnLip
    Participant

    I 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.

    in reply to: MB View - Gridbuilder Card #39388
    AnLipAnLip
    Participant

    Hi. 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 Berlin

    i 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.

    AnLipAnLip
    Participant

    Wouldn'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 .

    in reply to: Remove links from taxonomies #38619
    AnLipAnLip
    Participant

    In the meantime, I found this CSS trick here : https://github.com/soflyy/oxygen-bugs-and-features/issues/1684

    .your-class a { pointer-events: none; }

    in reply to: Custom Fields showing on Field Group setting page #36253
    AnLipAnLip
    Participant

    Hi 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 !

    in reply to: Custom Fields showing on Field Group setting page #36243
    AnLipAnLip
    Participant

    Hi 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/1hA4Qa8r

    in reply to: Several Custom Fields in a same container #35473
    AnLipAnLip
    Participant

    Hi Long,

    That worked, thanks a lot.

    PHP is black magic to me, sorry.

    in reply to: Checkbox checked by default in Field Group #35371
    AnLipAnLip
    Participant

    Thanks 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.

    in reply to: Checkbox checked by default in Field Group #35361
    AnLipAnLip
    Participant

    Thanks 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

    in reply to: Custom Taxonomy not registering #34101
    AnLipAnLip
    Participant

    Hi Long.
    Taxonomy behaviour seems to have changed. Can you confirm there has been a fix to the Taxonomy not registering mentioned above ?

    in reply to: Custom Taxonomy not registering #33979
    AnLipAnLip
    Participant

    Hi.
    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/999714250646219

    in reply to: Show "last update" instead of "date" on user dashboard #32365
    AnLipAnLip
    Participant

    Hi 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 !

    in reply to: [mb_frontend_dashboard] shortcode does not work. #31933
    AnLipAnLip
    Participant

    Hi 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.

    in reply to: Dashboard for logged in user #31932
    AnLipAnLip
    Participant

    Hi.
    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.

    in reply to: Dashboard not working #30885
    AnLipAnLip
    Participant
Viewing 15 posts - 31 through 45 (of 51 total)