Sitemap Setting
This plugin is the most powerfull plugin which easily display you
post and page through shortcode on front end.You just need to put
shortcode([sitemap]) on your page/post.
If you want to exclude pages then put ([sitemap excludepage="1,4"])
where 1,4 are the page id seperated by the comma's.
If you want to exclude categories then put ([sitemap
excludepage="1,4" excludecat="6,3"]) where 6,3 are the category id
seperated by the comma's.
If you want to exclude posts then put ([sitemap excludepage="1,4"
excludecat="6,3" excludepost="1,183"]) where 1,183 are the post id
seperated by the comma's.
If you don't want to show any of the post put ([sitemap
showpost="no"])
0,
"excludecat" => 0,
"excludepost" => 0,
"showpost" =>'' ,
), $atts));
if(isset($atts['excludepage']))
$excludepages=$atts['excludepage'];
$args=array(
'exclude' => $excludepages,
'title_li' => '',
'echo' => false
);
$display = 'Pages
';
$display .= wp_list_pages($args);
$display .= '
';
if(isset($atts['showpost']))
$show=$atts['showpost'];
if($show != 'no')
{
$display.='
';
if(isset($atts['excludecat']))
$arr=explode(',',$atts['excludecat']);
for($i=0;$i 'post',
'cat' => $excludecat,
'post__not_in' => $str
);
query_posts($args);
$flag=1;
if (have_posts()) : while (have_posts()) : the_post();
if($flag==1)
{
$display .='posts
';
}
$display .= '- '.get_the_title().'
';
$flag++;
endwhile;
endif;
wp_reset_query();
$display .= '
';
}
$display.='
';
return $display;
}
?>