need help for remove search bar from page

Hello,

Need help for removing search_bar to show on web page, already did that, but now can’t filter fragments- (or menus on
page), and cause I’m beginner need help, search_bar is mentioned
couple of times in that scrips (searchword), and just want to comment
out search_bar with all other functionality stay untouched

Script is below or attach:

<?php /* Template Name: School List Page */ $k = ''; ?>
<?php
if(isset($_POST['online1']))
{
	$k = 1;//Checkbox1 is selected
	if(isset($_POST['accr']))
	{
		$k = 3;
	}
}
 else if(isset($_POST['accr']))
{
	 $k = 2;
	 if(isset($_POST['online1']))
	{
		$k = 3;
	}
}
else
{
	$k = 4;
	if($_POST['searchword'])
	{
		$k = 5;
	}
	
} 

?>

<?php get_header(); if (have_posts()) : while (have_posts()) : the_post(); $data = get_post_meta( $post->ID, 'key', true ); $customBg = $data['custom-background']; $tagline = $data['sub-text'];?>

<?php the_title(); ?>

<?php if($tagline){?>

<?php echo $tagline;?>

<?php } ?>
<?php _e('Continue','themolitor');?>
    <?php $my_var = get_meta_values( 'Level' );

    if( !empty( $my_var ) ) {
    $meta_counts = array();
    $i =1;
    foreach( $my_var as $meta_value ){ ?>

  • <a href=""-<?php echo $i;?>" ><?php echo $meta_value;?>

  • <?php $i++; }} ?>

<?php
if( !empty( $my_var ) ) {
$meta_counts = array();
$j =1;
foreach( $my_var as $meta_value ){ ?>





<input type=“checkbox” name=“online1” id=“online1” class=“styled” <?php if(isset($_POST['online1'])){?> checked=“checked”<?php } ?>/>
Online Degrees Only
<input type=“checkbox” name=“accr” id=“accr” class=“styled” <?php if(isset($_POST['accr'])){?> checked=“checked”<?php } ?>/>
FEPAC Accreditation Only





<?php $childcategories = get_categories(‘child_of=96&hide_empty=1’);
foreach ($childcategories as $childcategory) { ?>

<?php if($k==1){ $args = array( 'orderby' => 'title', 'order' => 'ASC', 'category_name' => $childcategory->cat_name, 'meta_query' => array( array( 'key' => 'Level', 'value' => $meta_value, 'compare' => 'LIKE' ), array( 'key' => 'Online', 'value' => 'Yes', 'compare' => 'LIKE' ) ) ); }else if($k==2){ $args = array( 'orderby' => 'title', 'order' => 'ASC', 'category_name' => $childcategory->cat_name, 'meta_query' => array( array( 'key' => 'Level', 'value' => $meta_value, 'compare' => 'LIKE' ), array( 'key' => 'Accreditation', 'value' => 'Yes', 'compare' => 'LIKE' ) ) ); }else if($k==3){ $args = array( 'orderby' => 'title', 'order' => 'ASC', 'category_name' => $childcategory->cat_name, 'meta_query' => array( array( 'key' => 'Level', 'value' => $meta_value, 'compare' => 'LIKE' ) ), 'meta_query' => array( 'relation' => 'OR', array( 'key' => 'Accreditation', 'value' => 'Yes', 'compare' => 'LIKE' ), array( 'key' => 'Online', 'value' => 'Yes', 'compare' => 'LIKE' ) ) ); }else if($k==4){ $args = array( 'orderby' => 'title', 'order' => 'ASC', 'category_name' => $childcategory->cat_name, 'meta_query' => array( array( 'key' => 'Level', 'value' => $meta_value, 'compare' => 'LIKE' ) ) ); }else{ $args = array( 'orderby' => 'title', 'order' => 'ASC', 'category_name' => $childcategory->cat_name, 'meta_query' => array( array( 'key' => 'Level', 'value' => $meta_value, 'compare' => 'LIKE' ) ), 's' => $_POST['searchword'] ); } $data = query_posts($args);?>
          <?php if($data){?>
          <div class="title_boxes">
            <h1><span>schools in: </span> <?php echo $childcategory->cat_name; ?> </h1>
          </div>
          <?php }?>
          <!--title_boxes end-->
          <?php //query_posts('category_name='.$childcategory->cat_name );?>
          <div class="box_main">
            <?php if ( have_posts() ) : ?>
            <?php while ( have_posts() ) : the_post(); ?>
            <div class="box">
              <div class="box_title">
                <h2>
                  <?php the_title();?>
                </h2>
              </div>
              <div class="box_txt"><span style="float:left;padding: 4px 10px 0 0;">Major:</span>
                <p>
                  <?php the_excerpt();?>
                  <!--<img src="<?php //bloginfo('template_url');?>/images/ad_img.png" alt="" title=""  class="ad_img"/>-->
                </p>
                <div class="line"></div>
                <div class="left">
                  <p><span>Level:</span><br />
                    <?php echo get_post_meta($post->ID,'Level',true);?></p>
                </div>
                <div class="right">
                  <p><span>Location:</span><br />
                    <?php echo get_post_meta($post->ID,'Location',true);?></p>
                </div>
                <a href="<?php echo get_post_meta($post->ID,'visit_btn_link',true);?>" class="visit_btn">VISIT SITE</a> </div>
            </div>
            <?php endwhile; ?>
            <?php endif; ?>
            <?php wp_reset_query();?>
          </div>
          <?php } ?>
          <!--box_main end-->
        </div>
        <!--main_boxes end-->
      </div>
      <?php $j++; }} ?>
    </div>
    <!--menu2 end-->
  </div>
  <!--wrapper end-->
</div>
<!--?php endif; ?-->
<?php if ('open' == $post->comment_status) { comments_template(); } ?>
<div class="clear"></div>
<?php endwhile; endif; get_footer(); ?>

1.txt (7.35 KB)

[quote author=otpisani link=topic=22179.msg76990#msg76990 date=1388592675]
Hello,

Need help for removing search_bar to show on web page, already did that, but now can’t filter fragments- (or menus on
page), and cause I’m beginner need help, search_bar is mentioned
couple of times in that scrips (searchword), and just want to comment
out search_bar with all other functionality stay untouched

Script is below or attach:

[embed=425,349][php]<?php

/*

Template Name: School List Page

*/
$k = ‘’;
?>

<?php
if(isset($_POST['online1']))
{
	$k = 1;//Checkbox1 is selected
	if(isset($_POST['accr']))
	{
		$k = 3;
	}
}
 else if(isset($_POST['accr']))
{
	 $k = 2;
	 if(isset($_POST['online1']))
	{
		$k = 3;
	}
}
else
{
	$k = 4;
	if($_POST['searchword'])
	{
		$k = 5;
	}
	
} 

?>

<?php get_header(); if (have_posts()) : while (have_posts()) : the_post(); $data = get_post_meta( $post->ID, 'key', true ); $customBg = $data['custom-background']; $tagline = $data['sub-text'];?>

<?php the_title(); ?>

<?php if($tagline){?>

<?php echo $tagline;?>

<?php } ?>
<?php _e('Continue','themolitor');?>
    <?php $my_var = get_meta_values( 'Level' );

    if( !empty( $my_var ) ) {
    $meta_counts = array();
    $i =1;
    foreach( $my_var as $meta_value ){ ?>

  • <a href=""-<?php echo $i;?>" ><?php echo $meta_value;?>

  • <?php $i++; }} ?>

<?php
if( !empty( $my_var ) ) {
$meta_counts = array();
$j =1;
foreach( $my_var as $meta_value ){ ?>





<input type=“checkbox” name=“online1” id=“online1” class=“styled” <?php if(isset($_POST['online1'])){?> checked=“checked”<?php } ?>/>
Online Degrees Only
<input type=“checkbox” name=“accr” id=“accr” class=“styled” <?php if(isset($_POST['accr'])){?> checked=“checked”<?php } ?>/>
FEPAC Accreditation Only





<?php $childcategories = get_categories(‘child_of=96&hide_empty=1’);
foreach ($childcategories as $childcategory) { ?> <?php if($k==1){ $args = array( 'orderby' => 'title', 'order' => 'ASC', 'category_name' => $childcategory->cat_name, 'meta_query' => array( array( 'key' => 'Level', 'value' => $meta_value, 'compare' => 'LIKE' ), array( 'key' => 'Online', 'value' => 'Yes', 'compare' => 'LIKE' ) ) ); }else if($k==2){ $args = array( 'orderby' => 'title', 'order' => 'ASC', 'category_name' => $childcategory->cat_name, 'meta_query' => array( array( 'key' => 'Level', 'value' => $meta_value, 'compare' => 'LIKE' ), array( 'key' => 'Accreditation', 'value' => 'Yes', 'compare' => 'LIKE' ) ) ); }else if($k==3){ $args = array( 'orderby' => 'title', 'order' => 'ASC', 'category_name' => $childcategory->cat_name, 'meta_query' => array( array( 'key' => 'Level', 'value' => $meta_value, 'compare' => 'LIKE' ) ), 'meta_query' => array( 'relation' => 'OR', array( 'key' => 'Accreditation', 'value' => 'Yes', 'compare' => 'LIKE' ), array( 'key' => 'Online', 'value' => 'Yes', 'compare' => 'LIKE' ) ) ); }else if($k==4){ $args = array( 'orderby' => 'title', 'order' => 'ASC', 'category_name' => $childcategory->cat_name, 'meta_query' => array( array( 'key' => 'Level', 'value' => $meta_value, 'compare' => 'LIKE' ) ) ); }else{ $args = array( 'orderby' => 'title', 'order' => 'ASC', 'category_name' => $childcategory->cat_name, 'meta_query' => array( array( 'key' => 'Level', 'value' => $meta_value, 'compare' => 'LIKE' ) ), 's' => $_POST['searchword'] ); } $data = query_posts($args);?>
          <?php if($data){?>
          <div class="title_boxes">
            <h1><span>schools in: </span> <?php echo $childcategory->cat_name; ?> </h1>
          </div>
          <?php }?>
          <!--title_boxes end-->
          <?php //query_posts('category_name='.$childcategory->cat_name );?>
          <div class="box_main">
            <?php if ( have_posts() ) : ?>
            <?php while ( have_posts() ) : the_post(); ?>
            <div class="box">
              <div class="box_title">
                <h2>
                  <?php the_title();?>
                </h2>
              </div>
              <div class="box_txt"><span style="float:left;padding: 4px 10px 0 0;">Major:</span>
                <p>
                  <?php the_excerpt();?>
                  <!--<img src="<?php //bloginfo('template_url');?>/images/ad_img.png" alt="" title=""  class="ad_img"/>-->
                </p>
                <div class="line"></div>
                <div class="left">
                  <p><span>Level:</span><br />
                    <?php echo get_post_meta($post->ID,'Level',true);?></p>
                </div>
                <div class="right">
                  <p><span>Location:</span><br />
                    <?php echo get_post_meta($post->ID,'Location',true);?></p>
                </div>
                <a href="<?php echo get_post_meta($post->ID,'visit_btn_link',true);?>" class="visit_btn">VISIT SITE</a> </div>
            </div>
            <?php endwhile; ?>
            <?php endif; ?>
            <?php wp_reset_query();?>
          </div>
          <?php } ?>
          <!--box_main end-->
        </div>
        <!--main_boxes end-->
      </div>
      <?php $j++; }} ?>
    </div>
    <!--menu2 end-->
  </div>
  <!--wrapper end-->
</div>
<!--?php endif; ?-->
<?php if ('open' == $post->comment_status) { comments_template(); } ?>
<div class="clear"></div>
<?php endwhile; endif; get_footer(); ?> [/php][/embed]
Sponsor our Newsletter | Privacy Policy | Terms of Service