WordPress give a function to create shortcode to use any cms page or widget or any template. you can add your custom attributes to filter your shortcode data. you can use shortcode like [pro_post_site_listing category=”34″] 

add_shortcode(“pro_post_site_listing”,”pro_post_site_listing_shortcode_f”);

function pro_post_site_listing_shortcode_f($atts)

{

extract(shortcode_atts(array(

‘category’ => ”,

), $atts));

$content = futinon();

$c=$category;

return $content;

}

function futinon(){

//print_r($r);

include ‘front-list-site.php’;

}

Your Answer
Sign In
Enter email and password to comment or answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.