We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Search results outputs from all pages
I am trying to only output results from the
/blog/[...] pages. This is my code:
<?php $query = perch_get('q'); // 'q' query string argument e.g. search.php?q=apples $opts = array( 'count'=>8, 'from-path'=>'blog/', 'excerpt-chars'=>300, 'paginate' => true, 'page-links' => true, 'page-link-style' => 'all', 'cache' => false, ); perch_content_search($query, $opts); ?>
My problem is that the results from all pages are being shown.
Want to reply to this thread?Login with Perch