Code doesn't work with custom post type
-
I have this following set-up which works perfectly until I assign the template cu a custom post type:
[Associated Diseases]
type = checkbox
code = 0CODE #0
$args = array("post_type" => "disease", "posts_per_page" => "-1" ); $diseases = new WP_Query($args); if ( $diseases->have_posts() ) { while ( $diseases->have_posts() ) { $diseases->the_post(); $values[] = get_the_ID(); $valueLabels[] = get_the_title(); } }
The question has also been asked here 1 year ago:
https://wordpress.stackexchange.com/questions/119905/custom-field-template-missing-for-some-custom-post-typesMay this be solved, please? I really need that CPT assignment.
Thank you!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Code doesn't work with custom post type’ is closed to new replies.