How would I split the results into two columns [closed]

Something like this should work though I havent testested it: PHP: <?php $inputs=”<ul class=”checkbox-columns”>”; foreach($subjects as $subject){ $inputs .= ‘<li><label><input type=”checkbox” name=”subjects[]” value=”‘ . $subject[‘subject’] . ‘”/>’ . $subject[‘subject’] . ‘</label></li>’; } $inputs .= ‘</ul>’; echo $inputs; CSS: .checkbox-columns { width: 200px; } .checkbox-columns li { display: block; float: left; width: 50%; } This creates … Read more

how do i remove plusone js from WP? [closed]

http://apis.google.com/js/plusone.js is not a script that a default WordPress install tries to load. It’s likely coming from your theme or a plugin that adds social sharing buttons to your site. Try disabling all plugins to see if the warning still occurs. Then, re-activate each plugin one by one to find the culprit.

Using CMB2 Plugin to create text_date metabox (datepicker) How do I save multiple dates? [closed]

In CMB2 you can use the group type to create a repeating fields, then inside the group, you declare the text_date type. Let’s say you have an Events where you set multiple dates. $events = new_cmb2_box([ ‘id’ => ‘events_metabox’, ‘title’ => __(‘Events’, ‘text_domain’), ‘object_types’ => …, ‘show_on’ => …, … ]); $events_group_id = $events->add_field([ ‘id’ … Read more

Adding custom shortcode to page leads to page without styling

Shortcodes need to return their values, but the_content() echoes the post content. So you have two options. First is to capture all output and then return it at the end: ob_start(); // Start capturing output; while( $loop->have_posts() ) { $loop->the_post(); the_content(); }; wp_reset_postdata(); return ob_get_clean(); // Return captured output; That will be the cleanest way … Read more