css - Edit search results template in Wordpress -


i have created page template nice layout using lovely custom fields plugin client can update content.

i created loop on page template displays relevant information nicely;

here loop made:

        <?php     $args = array( 'post_type' => 'cripps_staff', 'posts_per_page' => 300 );     $loop = new wp_query( $args );     while ( $loop->have_posts() ) : $loop->the_post();      echo '<div class="col-md-3 spacetop">';     echo '<a href="'.get_permalink().'">';     echo get_post_meta($post->id,'image',true);     echo '</a>';     echo '<h2 class="staffname">';     echo get_post_meta($post->id,'staff_name',true);     echo '</h2>';     echo '<h2 class="staffrole">';     echo get_post_meta($post->id,'staff_role',true);     echo '</h2>';     echo '<h2 class="staffnumber">';     echo get_post_meta($post->id,'staff_telephone_number',true);     echo '</h2>';     echo '<h2 class="staffemail">';     echo get_post_meta($post->id,'staff_email_address',true);     echo '</h2>';     echo '</div>';     endwhile;     ?> 

i created taxonomies staff members split categories.

i using plugin called taxonomies filter create dropdown options see. when select element in dropdowns, wordpress goes to/changes page custom search results page created. want search results displayed loop on people's template. spits out title in h1 tag.

here code got twenty fourteen theme:

                <?php                 // start loop.                 while ( have_posts() ) : the_post();                      /*                      * include post format-specific template content. if want                      * use in child theme, include file called called content-___.php                      * (where ___ post format) , used instead.                      */                     get_template_part( 'content', get_post_format() );                  endwhile;                 // previous/next post navigation.                 crippstheme_paging_nav();              else :                 // if no content, include "no posts found" template.                 get_template_part( 'content', 'none' );              endif;         ?> 

how can search results post loop?

i managed resolve of pieter goosen, provided me awesomely detailed response, see full answer on wordpress development forum:

https://wordpress.stackexchange.com/questions/143023/edit-wordpress-loop-taxonomies-filter


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -