07-27-2023, 10:04 AM
I created custom page template.
<?php
/*
* Template Name: foo
*/
?>
This file name is "foo.php".
I tried
global $query_string;
query_posts($query_string . "&post_type=post");
But all pages will be excepted....
How to exclude only this page template from wordpress search results?
<?php
/*
* Template Name: foo
*/
?>
This file name is "foo.php".
I tried
global $query_string;
query_posts($query_string . "&post_type=post");
But all pages will be excepted....
How to exclude only this page template from wordpress search results?