$valueLabel no longer works in PHPCode
-
The $valueLabel array variable no longer seems to work in PHPCode since upgrading the plugin (not sure the exact version but think it was the one before last update..).
The $valueLabel array should populate the labels for drop-down SELECT elements and was working fine on several post templates until the recent upgrade in question.
Not sure if the variable name has been changed or if the feature is completely broken.
Would be nice to know if anyone else is experiencing the same thing.
Below is an example of code being used in the PHPCode section:
$values = array(); $valueLabel = array(); $myPosts = get_posts('cat=22&numberposts=-1'); foreach( $myPosts as $myPost ) { $values[ count( $values ) ] = $myPost->ID; $valueLabel[ count( $valueLabel ) ] = get_post_meta( $myPost->ID, 'Venue Name', true ) . ', ' . get_post_meta( $myPost->ID, 'City', true ); };
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘$valueLabel no longer works in PHPCode’ is closed to new replies.