Support Forum » User Profile

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Conditional Logic Not Working on Frontend #28133
    JordanJordan
    Participant

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

    in reply to: Conditional Logic Not Working on Frontend #28009
    JordanJordan
    Participant

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

    in reply to: Conditional Logic Not Working on Frontend #28008
    JordanJordan
    Participant

    Everything is up to date. If I deactivate Oxygen completely is does work, so there must be a conflict somewhere.

    in reply to: Conditional Logic Not Working on Frontend #27996
    JordanJordan
    Participant

    Same problem persists without Oxygen.

    in reply to: Conditional Logic Not Working on Frontend #27980
    JordanJordan
    Participant

    Hi 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/TfabQPQu

    And the full code for the custom fields:
    https://pastebin.com/eAGrSQBh

    Thanks!

    JordanJordan
    Participant

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

    JordanJordan
    Participant

    I 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/125qfo0

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

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