Like:
My Sports:
Football – YES
Tennis – NO
Icehockey – NO
Basketball – YES
Sailing – YES
Right now I list all the YES taxonomies with:
function check_rock_details() {
global $post;
$rock_details = wp_get_object_terms( $post->ID, 'rock_details' );
if ( ! empty( $rock_details ) ) {
if ( ! is_wp_error( $rock_detailss ) ) {
echo '<table border="1"><tr><td colspan="2">Details</td></tr>';
foreach( $rock_details as $rock_detail ) {
echo '<tr><td>' . esc_html( $rock_detail->name ) . '</td><td>YES</td></tr>';
}
echo '</table>';
}
}
}
add_shortcode( 'rock_details', 'check_rock_details' );
How do I create a List ith both, YES and NO?
Thanks for some suggestions,
Denis
]]>// Display all contact form 7 forms
$forms = get_posts(array('post_type' => 'wpcf7_contact_form', 'orderby' => 'id', 'order' => 'ASC', 'posts_per_page' => -1, 'numberposts' => -1));
if($forms){
foreach($forms as $k => $form){
$key = $form->ID;
$value = $form->post_title;
$selected = '';
// Mark form as selected as required
if(is_array($field['value'])){
// If the value is an array (multiple select), loop through values and check if it is selected
if(in_array($key, $field['value'])){
$selected = 'selected="selected"';
}
//Disable form selection as required
if(in_array(($k+1), $field['disable'])){
$selected = 'disabled="disabled"';
}
}else{
// If not a multiple select, just check normaly
if($key == $field['value']){
$selected = 'selected="selected"';
//THE BUG? }
if(in_array(($k+1), $field['disable'])){
$selected = 'disabled="disabled"';</strong>
}
}
echo '<option value="'.$key.'" '.$selected.'>'.$value.'</option>';
}
}
]]>Warning: in_array() expects parameter 2 to be array, string given in /home2/insurance/public_html/wp-content/plugins/cf-geoplugin/includes/class-cf-geoplugin-shortcodes.php on line 167
Warning: in_array() expects parameter 2 to be array, string given in /home2/insurance/public_html/wp-content/plugins/cf-geoplugin/includes/class-cf-geoplugin-shortcodes.php on line 169
Warning: Cannot modify header information – headers already sent by (output started at /home2/insurance/public_html/wp-content/plugins/cf-geoplugin/includes/class-cf-geoplugin-shortcodes.php:167) in /home2/insurance/public_html/wp-admin/includes/misc.php on line 1196
Any suggestions on what I can / need to do to fix this? Worked fine with the previous version.
]]>Standard Sharing Interface Options
Warning: in_array() expects parameter 2 to be array, null given in …/wp-content/plugins/sassy-social-share/admin/partials/sassy-social-share-options-page.php on line 1021
style = “display: none”>
Floating Sharing Interface Options
Warning: in_array() expects parameter 2 to be array, null given in …/wp-content/plugins/sassy-social-share/admin/partials/sassy-social-share-options-page.php on line 1453
style = “display: none”>
We’ve been getting the same error on our calendar page:
“Warning: in_array() expects parameter 2 to be array, string given in /home4/still1885/public_html/wp-content/plugins/my-calendar/my-calendar-event-manager.php on line 3462”
I’ve deactivated and reactivated the plugin, and the latest version is installed. I’m unsure how to see if other plugins are interfering if they are. Any help would be appreciated.
Thanks!
Jay
Warning: in_array() expects parameter 2 to be array, null given in /wp-content/plugins/jetpack/class.jetpack.php on line 1518
Is there a fix coming?
Thanks
]]>I’m lost as to how to pull those IDs into the shortcode, for example…
[wp_show_posts id=”wpcf-location-id”]
Thanks for your support!
]]>I’m lost as to how to pull those IDs into the shortcode…
[ic_add_posts ids=’wpcf-location-id’]
Thanks for your support!
]]>However, I get the following error:
Warning: in_array() expects parameter 2 to be array, null given in /users13/domains/concoursbuilder.us/web/concours-entry/wp-content/plugins/menu-items-visibility-control/init.php(112) : eval()’d code on line 1
]]>Warning: in_array() expects parameter 2 to be array, null given in /home/…/public_html/wp-content/plugins/favorites/app/Entities/User/UserRepository.php on line 188
The button works just fine, but these messages won’t go away.
What’s the matter and how to fix this?
Thank you.