Skip to content

mywp_site

Example Sites

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.

[mywp_site field="****"]

 

Attributes

field=”id

Get the site id.

[mywp_site field="id"]

Result

1

 

field=”name

Get the site name. Same to get_bloginfo( “name” )

[mywp_site field="name"]

 

site_id=”***

Get the specific blog(Same to blog_id).

[mywp_site site_id="2" field="name"]

 

blog_id=”***

Get the specific blog(Same to site_id).

[mywp_site blog_id="2" field="name"]

This Post Has 0 Comments

Leave a Reply

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

Back To Top