| Server IP : 65.109.86.83 / Your IP : 216.73.217.84 Web Server : nginx/1.14.1 System : Linux libra 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 20:24:04 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.31 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/themes/zodiac22-child/ |
Upload File : |
<?php
/**
* Template Name: Sitemap
*/
get_header();
get_template_part('inc/header-parts/main');
?>
<div class="container sitemap-page">
<?php get_list_of_pages_by_page_groups(); ?>
<div class="column-sitemap">
<ul>
<li><h3>Products</h3></li>
<?php
$include = [
'homepage',
'forever-love-with-a-leo-man-secrets',
'30-secrets',
'3-step-formula',
'leo-man-heart-opener',
'book-vip-consultation',
'dirty-phrases',
'leo-man-2022-secrets',
'the-big-book-of-answers',
'leo-text-magic',
'relationship-mistakes',
];
get_pages_sitemap($include);
?>
</ul>
<ul>
<li><h3>Compatibility Guides</h3></li>
<?php
$sign = 'leo';
$include = [
$sign . '-man-and-aquarius-woman-secrets',
$sign . '-man-and-pisces-woman-secrets',
$sign . '-man-and-capricorn-woman-secrets',
$sign . '-man-and-sagittarius-woman-secrets',
$sign . '-man-and-scorpio-woman-secrets',
$sign . '-man-and-libra-woman-secrets',
$sign . '-man-and-leo-woman-secrets',
$sign . '-man-and-cancer-woman-secrets',
$sign . '-man-and-gemini-woman-secrets',
$sign . '-man-and-taurus-woman-secrets',
$sign . '-man-and-aries-woman-secrets',
$sign . '-man-and-virgo-woman-secrets',
];
get_pages_sitemap($include);
?>
</ul>
<?php
// Add categories you'd like to exclude in the exclude here
$cats = get_categories('exclude=');
foreach ($cats
as $cat) {
if ($cat->cat_name === 'Seduction and Dating') {
?>
</div>
<div class="column-sitemap">
<ul>
<li><h3>Company</h3></li>
<?php
$include = [
'affiliates',
'about-me',
'contact',
'privacy-policy',
'refund-policy',
'terms-of-use',
];
get_pages_sitemap($include);
?>
</ul>
<ul>
<li><h3>If you don't know where to start, read my blog</h3></li>
<li><a href="/blog">Blog</a></li>
</ul>
<?php
}
if ($cat->cat_name !== 'Uncategorized') {
echo "<ul>";
echo "<li><h3>Posts: " . $cat->cat_name . "</h3></li>";
query_posts('posts_per_page=-1&cat=' . $cat->cat_ID);
while (have_posts()) {
the_post();
$category = get_the_category();
if ($category[0]->cat_ID == $cat->cat_ID) {
echo '<li><a href="' . get_permalink() . '">' . get_the_title() . '</a></li>';
}
}
echo "</ul>";
}
}
?>
</div>
</div>
<?php
get_footer();