Forum Replies Created
-
AuthorPosts
-
[email protected]
ParticipantIt didn't work. Any other suggestions?
Thanks,
[email protected]
ParticipantHello,
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.
[email protected]
ParticipantHow do I get the post ID dinamically?
rwmb_meta( 'text_fieldID', '', 12345 );[email protected]
ParticipantHi,
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,
[email protected]
ParticipantThis how it looks when editing the Oxygen template.
And this is how it looks in the frontend.
[email protected]
ParticipantTried 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,
[email protected]
ParticipantForget 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.
[email protected]
ParticipantHi,
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,
-
AuthorPosts