开发者 |
alexjose
rogin |
---|---|
更新时间 | 2016年2月26日 18:00 |
PHP版本: | 3.0.1 及以上 |
WordPress版本: | 4.4.2 |
版权: | GPLv2 |
版权网址: | 版权信息 |
cptr-relation
folder to the /wp-content/plugins/
directoryNo. You can create any number of relations as much as you need.
There are two theme function provided with the plugin for access the relations
data. They are cptr_get_relations_ids
and cptr_get_relations
.
cptr_get_relations_ids($cptr_keys, $post_id = null)
$cptr_keys
can be string or array. You will get the key of each relation in the admin
page for CPT Relation plugin. This argument can also have the value all
which will return all the defined relations for that post.
$post_id should be int. If this is not provided current post is considered.
CPT Relations in an open source project hosted in the GitHub. You can raise any issues at https://github.com/GingerCodes/cpt-relations/issues.