Forum Replies Created
-
AuthorPosts
-
Jordan
ParticipantThe issue has been resolved by Oxygen team. The problem was caused by Oxygen's built-in optimisation "Disable WP Emojis", which needs to be unchecked in Oxygen --> settings --> Bloat Eliminator. Conditional Logic now works fine!
Jordan
ParticipantI'll contact Oxygen team to see if they can provide help. In the meantime, would there be a way to make it work (for example, keeping post_fields="title, content" in the shortcode but disabling it via CSS display: none)? -- I've tried this but couldn't get it working.
Jordan
ParticipantEverything is up to date. If I deactivate Oxygen completely is does work, so there must be a conflict somewhere.
Jordan
ParticipantSame problem persists without Oxygen.
Jordan
ParticipantHi Long,
I have the exact same issue. Working with Metabox AIO and Oxygen. With post_fields included in the shortcode, conditional logic works fine but as soon as I remove it (or remove "content" and leave "title") it just stops working, displaying the field all the time.
Here's the shortcode used in Oxygen:
[mb_frontend_form id="command-form"]Here's the code for the conditional logic:
https://pastebin.com/TfabQPQuAnd the full code for the custom fields:
https://pastebin.com/eAGrSQBhThanks!
April 29, 2021 at 12:43 AM in reply to: ✅Custom HTML + PHP callback to display value on Settings Page (MB AIO) #27741Jordan
ParticipantThanks! So if I understand, I must wrap everything in a custom function that will echo the settings_field value. Where should I store that custom function so it is accessible via callback? (I use Oxygen which disables function.php).
April 28, 2021 at 2:43 AM in reply to: ✅Custom HTML + PHP callback to display value on Settings Page (MB AIO) #27713Jordan
ParticipantI realized my above question isn't well formulated: the code above works well in an Oxygen code block, so this isn't the issue. Now what I want to do is access the same table's data from a Custom Fields Group and display it on a settings page using custom html. For example, here's how I tried to output the value of ' start_index ' through
1) php callback: http://prnt.sc/125qd5s
2) html/php: http://prnt.sc/125qfo0Yet the settings page outputs nothing: http://prnt.sc/125qhps
What I really want to display is the $index variable in the above code. Any help understanding how the custom html works would be greatly appreciated (I did read the documentation but could not figure it out.)
Thanks!
-
AuthorPosts