kali ini ane mo share cara buat sitemap bikinan sendiri klo repost ane mohon maaf
ooh iya ane baru nyoba kode ini diwordpress kg tau klo diblogcepot work apa kg
oke lah klo beg....beg...begitu begini cerita'y :
pertama copy file page.php di themes kalian alamat lengkap'y ada dibawah ini:
namadomain.com/wp-content/themes/nama themes yang sedang dipakai/page.php
dicatet yah hati2 nyasar coz ane kg bakal nganterin balik
nah klo dah ketemu rename dah tuh file jadi sitemap.php
second edit file sitemap.php dengan cara open with dreamweaver or notepad++ (pake aplikasi lain juga boleh yg penting ok )
trus cari kode ini
Code:
<?php the_content(); ?>
trus direplace sama yang ini
Code:
<h3>Pages</h3>
<ul><?php wp_list_pages("title_li=" ); ?></ul>
<h3>Feeds</h3>
<ul>
<li><a title="Full content" href="feed:<?php bloginfo('rss2_url'); ?>">Main RSS</a></li>
<li><a title="Comment Feed" href="feed:<?php bloginfo('comments_rss2_url'); ?>">Comment Feed</a></li>
</ul>
<h3>Categories</h3>
<ul><?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0&feed=RSS'); ?></ul>
<h3>All Blog Posts:</h3>
<ul><?php $archive_query = new WP_Query('showposts=1000&cat=-8');
while ($archive_query->have_posts()) : $archive_query->the_post(); ?>
<li>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
(<?php comments_number('0', '1', '%'); ?>)
</li>
<?php endwhile; ?>
</ul>
<h3>Archives</h3>
<ul>
<?php wp_get_archives('type=monthly&show_post_count=true'); ?>
</ul>
nah klo dah beres jangan lupa disisipkan kode ini (masih dalam file sitemap.php tadi
Code:
<?php
/*
Template Name: Sitemap
*/
?>
klo ane hasil jadi'y model gini
Code:
<?php get_header(); ?>
/*
Template Name: Sitemap
<div id="content">
<div id="contentleft">
<div class="postarea">
<?php include(TEMPLATEPATH."/breadcrumb.php");?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1><?php the_title(); ?></h1><br />
<h3>Pages</h3>
<ul><?php wp_list_pages("title_li=" ); ?></ul>
<h3>Feeds</h3>
<ul>
<li><a title="Full content" href="feed:<?php bloginfo('rss2_url'); ?>">Main RSS</a></li>
<li><a title="Comment Feed" href="feed:<?php bloginfo('comments_rss2_url'); ?>">Comment Feed</a></li>
</ul>
<h3>Categories</h3>
<ul><?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0&feed=RSS'); ?></ul>
<h3>All Blog Posts:</h3>
<ul><?php $archive_query = new WP_Query('showposts=1000&cat=-8');
while ($archive_query->have_posts()) : $archive_query->the_post(); ?>
<li>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
(<?php comments_number('0', '1', '%'); ?>)
</li>
<?php endwhile; ?>
</ul>
<h3>Archives</h3>
<ul>
<?php wp_get_archives('type=monthly&show_post_count=true'); ?>
</ul>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.', 'studiopress'); ?></p><?php endif; ?>
</div>
</div>
<?php include(TEMPLATEPATH."/sidebar.php");?>
</div>
<?php // The main column ends ?>
*\
<?php get_footer(); ?>
ud beres ngoprek kode'y sekarang kita lanjut masuk ke dashboard
buat page baru dengan Judul Sitemap trus pada ribut attribut box pilih sitemap template lalu publish dan jadi deh sitemap baru hasil koding "sendiri"
biasa motto ane klo bikin thread "You follow i Follow"