Custom Fields
Re-Envisioned
Support MB Custom Post Type Use Checkbox Custom Type and When Checked Show Icon on Frontend

  • Creator
    Topic
  • #30095
    Resolved dwayne@theolivermediagroup.com
    Participant

    Hello,
    I'm creating a tournament registration form. One of my custom field options is gender:

    1. Boys
    2. Girls

    Whenever one is checked I want to show an icon (image) on the frontend.

    Can that be done? if so how?

Viewing 4 replies - 11 through 14 (of 14 total)
  • Author
    Replies
  • #30262

    Hmmm... I put the code in the single.php file and nothing is happening. Placed the code at the bottom of the file (starting at line 190). Can you take a look at the file and see what I'm doing wrong.

    Here's a screenshot of the single.php file where I added the code.

    https://cln.sh/D5ohzM

    Thanks again for all your help

    #30277
    Long Nguyen
    Moderator

    Hi,

    You are correct. The code works as well on my local site. Can you please add some text before the code to see if it displays on the single post page? Then make sure that you've updated the field value on the post.

    #30287

    Hello Support,
    I created a loom video to show you what's going on my end - https://www.loom.com/share/1f7083376ba548789649a2b374a33ba4

    I'm sure that's it's something I'm doing wrong. But I just don't know what.

    Thanks again for all your help

    #30294
    Long Nguyen
    Moderator

    Hi,

    If you are using a builder to create the post template, the theme's template might be ignored by the builder functions. You can try to deactivate all plugins except Meta Box and MB Extensions to re-check the code.

Viewing 4 replies - 11 through 14 (of 14 total)
  • You must be logged in to reply to this topic.