[Plugin: WP Easy Post Types] Get Checkbox value in Theme
-
Hi. I’m liking this plugin!
I’m developing a new site (WordPress 3.0, working locally with XAMPP 1.7.3).
I added a checkbox field (named ‘r22cb’ ) to my custom post type, but I can’t the value of it into my theme. I have tried:
<p>Checkbox: abc<?php get_ept_field( 'r22cb' ); ?>def </p>
<p>Checkbox: abc<?php the_ept_field( 'r22cb' ); ?>def </p>
Regardless of the state of the box, both appear to return a NULL, and the output in my theme is:
Checkbox: abcdef
I examined the database with PHPmyAdmin. When the box is checked on the post the value is set to ‘on’, it’s NULL if the box is unchecked.
Am I missing something here? Thanks in advance for any help.
https://www.ads-software.com/extend/plugins/easy-post-types/
- The topic ‘[Plugin: WP Easy Post Types] Get Checkbox value in Theme’ is closed to new replies.