WPV_Blog

class WPV_Blog

Methods

Register the shortcode

__construct() 

Blog shortcode callback

shortcode(array $atts, string $content = null, string $code = 'blog') : string
static

Arguments

$atts

array

shortcode attributes

$content

string

shortcode content

$code

string

shortcode name

Response

string

output html

Returns the number of posts in a list of categories

in_category(array $categories) : int
static

Arguments

$categories

array

array of categories

Response

int

number of items