mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 20:16:22 +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>';
|
$map .= '</urlset>';
|
||||||
|
|
||||||
} elseif (strpos($str, 'post.') !== false ) {
|
} elseif (strpos($str, 'post.') !== false ) {
|
||||||
|
|
||||||
$totalPosts = array();
|
|
||||||
$totalPosts = get_blog_posts();
|
|
||||||
|
|
||||||
if ($str == 'post.xml') {
|
if ($str == 'post.xml') {
|
||||||
|
|
||||||
$map .= '<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';
|
$map .= '<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';
|
||||||
|
|
||||||
|
$totalPosts = array();
|
||||||
|
$totalPosts = get_blog_posts();
|
||||||
|
|
||||||
$total = count($totalPosts);
|
$total = count($totalPosts);
|
||||||
$totalPage = ceil($total / 500);
|
$totalPage = ceil($total / 500);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue