Exclude page from search.php
-
Hey there,
Just how exactly can I exclude certain pages from appearing in the search page result?
This is my code<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1> <?php if($arabic2=="1"){ the_excerpt_rereloaded('100','<strong>???????</strong>','<a>,<i>,<em>,<b>,<strong>,<ul>,<ol>,<li>,<span>,<blockquote>','plain'); } else{ the_excerpt_rereloaded('100','<strong>Suite</strong>','<a>','plain');} ?> <div class="date"> <p><?php the_time('F j, Y'); ?> by <?php the_author_posts_link(); ?> · <?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?> <?php edit_post_link('(Edit)', '', ''); ?></p>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Exclude page from search.php’ is closed to new replies.