Support Forum » User Profile

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: How to use a color picker field in Oxygen? #31606
    ameneses67@gmail.com[email protected]
    Participant

    It didn't work. Any other suggestions?

    Thanks,

    in reply to: How to use a color picker field in Oxygen? #31530
    ameneses67@gmail.com[email protected]
    Participant

    Hello,

    I'm trying to get the MB color picker value from the current post, not from a settings page.

    This is what I have and works well, but it has a specific post ID (281). How can I pull the current post ID instead of having a fix value?

    add_action( 'wp_head', function () { ?>
    <style>
    :root {
    /*Begin First Varible Code*/
    --primary-1: <?php 
            $primary_color_1 = rwmb_meta( 'primary_hero_bg_color_1', '', 281 );
            echo $primary_color_1;
            ?>;
    ;
    /*End First Varible Code*/
    
    /*Begin Second Varible Code*/
    --secondary-1: <?php 
            $secondary_color_1 = rwmb_meta( 'secondary_hero_bg_color_1', '', 281 );
            echo $secondary_color_1;
            ?>;
    ;
    /*End Second Varible Code*/
    }
    </style>
    <?php } );

    I tried rwmb_meta( 'primary_hero_bg_color_1 ); expecting to get the value from the current post but it didn't work.

    Thanks in advance for your help.

    in reply to: How to use a color picker field in Oxygen? #31476
    ameneses67@gmail.com[email protected]
    Participant

    How do I get the post ID dinamically?

    rwmb_meta( 'text_fieldID', '', 12345 );

    in reply to: Custom post type archive not showing #27837
    ameneses67@gmail.com[email protected]
    Participant

    Hi,

    I deactivated Oxygen plugin, and using twenty twenty-one theme, custom post archive is shown. Although, using a custom archive slug shows a 404.

    So, Oxygen is not compatible with Meta Box?

    Thanks,

    in reply to: Custom post type archive not showing #27795
    ameneses67@gmail.com[email protected]
    Participant

    This how it looks when editing the Oxygen template.

    And this is how it looks in the frontend.

    in reply to: Custom post type archive not showing #27794
    ameneses67@gmail.com[email protected]
    Participant

    Tried that but still not working. I also removed the custom slug and rewrite slug to use the default one, but it still shows a blank page.

    I updated to the latest Meta Box version you just released.

    Thanks,

    in reply to: Custom post type archive not showing #27750
    ameneses67@gmail.com[email protected]
    Participant

    Forget to say that, when I'm editing the custom post type archive template, I can see the created posts, but when I go to the frontend, nothing is shown.

    in reply to: Archive of custom post type does not show #27679
    ameneses67@gmail.com[email protected]
    Participant

    Hi,

    I have the same issue. I saved the permalink settings but it still doesn't show. I'm using Oxygen Builder if it's important to say.

    Thanks,

Viewing 8 posts - 1 through 8 (of 8 total)