You can specify a search term in a WP_Query
or get_posts()
call:
$pages = get_posts(
array (
's' => '[shortcodename',
'post_type' => array ( 'page', 'post' )
)
);
You can specify a search term in a WP_Query
or get_posts()
call:
$pages = get_posts(
array (
's' => '[shortcodename',
'post_type' => array ( 'page', 'post' )
)
);