Different column width in 2 rows with bootstrap and custom post types-different classes needed

Try the code below. <div class=”container-fluid gray-section”> <div class=”container”> <div class=”row”> <?php $projects = get_posts(array(‘post_type’=>’project’,’posts_per_page’=>5, ‘order’=>’ASC’)); if ($projects) { ?> <ul class=”list-unstyled”> <?php $i = 0; ?> <?php foreach ($projects as $post) { setup_postdata( $post ) ?> <?php if($i % 3 == 1) { ?> <li class=”col-md-4 col-sm-6 col-xs-12 col-xxs-12 text-center “> <?php } else … Read more

Query Posts that have Custom Taxonomy

Got help on Facebook and just needed to change this: <option value=”<?php echo $term->name; ?>” <?php if($_POST[‘mealtype’] == $term->name) { echo ‘selected’; } ?>><?php echo $term->name; ?></option> to this: <option value=”<?php echo $term->slug; ?>” <?php if($_POST[‘mealtype’] == $term->slug) { echo ‘selected’; } ?>><?php echo $term->name; ?></option>

Filtering the_content, but still need to display the unfiltered content inside filter

First, your filter should return, not echo anything. The content will appear in the wrong place if you echo directly within the function. The original contents of the_content are passed to the filter function as an argument- function fds_the_content( $content ) { // <— original value of the_content // append original $content $new_content=”new content” . … Read more