Php 如何在wordpress中的简单搜索中添加元查询
我的模板中有一个php代码问题。我需要包括元键'fave\u property\u id' 在我的搜索查询中 我尝试了很多解决方案,但都没有达到我的目的Php 如何在wordpress中的简单搜索中添加元查询,php,wordpress,Php,Wordpress,我的模板中有一个php代码问题。我需要包括元键'fave\u property\u id' 在我的搜索查询中 我尝试了很多解决方案,但都没有达到我的目的 This is the code: $args = array( 'post_type' => 'property', 'author' => $userID, 'paged' => $paged, 'posts_per_page' => $no_o
This is the code:
$args = array(
'post_type' => 'property',
'author' => $userID,
'paged' => $paged,
'posts_per_page' => $no_of_prop,
'post_status' => array( $qry_status ),
'suppress_filters' => false
);
if( isset ( $_GET['keyword'] ) ) {
$keyword = trim( $_GET['keyword'] );
if ( ! empty( $keyword ) ) {
$args['s'] = $keyword;
}}
$args = houzez_prop_sort ( $args );`
有什么建议吗