Description
mywp_site
shortcode can be get the site data.
Usage
Default site data is current site and “field” attribute is must have a value.
1 | [[mywp_site field="****"]] |
Attributes
field=”id“
Get the site id.
1 | [[mywp_site field="id"]] |
Result
1
field=”name“
Get the site name. Same to get_bloginfo( “name” )
1 | [[mywp_site field="name"]] |
site_id=”***“
Get the specific blog(Same to blog_id).
1 | [[mywp_site site_id="2" field="name"]] |
blog_id=”***“
Get the specific blog(Same to site_id).
1 | [[mywp_site blog_id="2" field="name"]] |
This Post Has 0 Comments