最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Get taxonomy based on another taxonomy slug

programmeradmin1浏览0评论

I have 2 custom taxonomies associated with 'property' custom post type.

1 - prop-city

2 - prop-type

can i get property type based property city?

I need in properties city page when i click on property type link show me the property types in same city by property city slug.

now i'm displaying property cities like this

$terms = get_terms(
            array(
                'taxonomy' => 'prop-type',
                'parent' => 0,
            )
        );

And i can get the current page property city slug by:

get_query_var( 'term' );
发布评论

评论列表(0)

  1. 暂无评论