wp教程:19、WordPress搜索页模板调用

WordPress搜索页模板调用

方法:

<?php get_search_query(); ?>  获取搜索词

要用到的文件  search.php 搜索页模板

知识点

学会使用search.php 开发搜索页模板,跟文章分类模板一样

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *