mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 11:36:20 +05:30
Update functions.php
This commit is contained in:
parent
b361d7de2e
commit
30cfb03097
1 changed files with 3 additions and 3 deletions
|
|
@ -3113,13 +3113,13 @@ function generate_sitemap($str)
|
|||
$map .= '</urlset>';
|
||||
|
||||
} elseif (strpos($str, 'post.') !== false ) {
|
||||
|
||||
$totalPosts = array();
|
||||
$totalPosts = get_blog_posts();
|
||||
|
||||
if ($str == 'post.xml') {
|
||||
|
||||
$map .= '<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';
|
||||
|
||||
$totalPosts = array();
|
||||
$totalPosts = get_blog_posts();
|
||||
|
||||
$total = count($totalPosts);
|
||||
$totalPage = ceil($total / 500);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue