Hello,
I've created a post type that is using the checkbox custom field (hidden link). I wanted to know if an icon shows up when an option is checked (hidden link).
Here's the URL to my site - hidden link, but the custom post type isn't live yet. Let me know if you need access to by backend.
Hello. Thank you for contacting the Toolset support.
As I understand, you would like to display different icons per checkboxes field option.
Types offers how you can display content for checked/unchecked options. For example:
[types field="your-checkboxes-field-slug" option="0" state="checked"]
Display your image here for option 0 when checked
[/types]
[types field="your-checkboxes-field-slug" option="1" state="checked"]
Display your image here for option 1 when checked
[/types]
Replace your "your-checkboxes-field-slug" with your original field slug.
Can you please share what image you want to display with what option and share access details so I can check whats going on with your setup.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
I'm not sure whats going on with your site as it just not display the checkboxes option values when checked.
I tried using single field block as well as by creating a content template that holds the shortcodes:
=> hidden link
And then I've added the content template to your block view's loop:
=> hidden link
But its not working.
Then, I've run a test with my test site by creating the checkboxes field and set this field to display with 'Student Review" CPT:
=> hidden link
Then, I've created the block view:
=> hidden link
And try to add the checkboxes field using single field block as well as using content template:
=> hidden link
But when I see the result on frontend:
=> hidden link
I see it displays the correct output using Single field as well as using content template added using view.
You can login to my test site using:
User: demo
pwd: Admin@999
As the same thing is not working on your site, I suggest you should create a staging site and perform basic debug steps:
- Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes? Do you see any different?
- Please check with clean install where you create a checkboxes field and try to display it's associated values.
- What if you create another test post type and custom checkboxes field and try to create a view that display the posts belongs to this test post type to ensure that view you created is not corrupted?