a-zindex – wordpress plugin – english
description
a-zindex generates an a-z index of the first chars of all article titles. It can be usefull because it allows search engines to find articles easy. The installation is easy and will take only 5 minutes. You have to make 3 little changes to the themes.
sites using a-zindex
http://www.infos-zum-thema.de/
download
download a-zindex v0.1.5 (.zip) and extract it into your plugin folder.
installation manual
five simple steps to install this tool:
1. upload this file via ftp to your plugin folder (wp-content/plugins/)
2. go in your wordpress administration and activate this plugin (you find it
under plugins and there under A-Z Index
Now you have to add some code into two files of your theme. I´ll explain it
with the WordPress Default theme (that with the blue head image):
3. go in your wordpress administration to themes – theme-editor and
there open the file archive.php
Find the line:
<?php else : ?>
Replace this line with:
<?php elseif (strlen($category_name)==1): ?>
<h2 class=”center”>Articles with “<?php echo strtoupper($category_name); ?>” :</h2>
<?php
$A_ZStart=’<li> ‘; // html part in front of <a href…
$A_ZClass=”; // html part in the href-tag example: css-style or target
$A_ZEnd =’</li> ‘;// html part after </a>
// example:
//[$A_ZStart]<a href=”http://www.domain.de” mce_href=”http://www.domain.de” [$A_ZClass]>domain</a>[$A_ZEnd]
echo A_ZIndexArticles($A_ZStart, $A_ZClass, $A_ZEnd, $category_name);
?><br />
<?php else : ?>
4. go in your wordpress administration to themes – theme-editor and
there open the file footer.php
Find the line:
<!– <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. –>
Replace this line with:
<!– <?php echo $wpdb->num_queries; ?> queries. <?php timer_stop(1); ?> seconds. –>
<?php
$A_ZStart=’ ‘; // html part in front of <a href…
$A_ZClass=”; // html part in the href-tag example: css-style or target
$A_ZEnd =’ ‘; // html part after </a>
// example:
//[$A_ZStart]<a href=”http://www.domain.de” mce_href=”http://www.domain.de” [$A_ZClass]>domain</a>[$A_ZEnd]
echo ‘<br />’.A_ZIndexMenu($A_ZStart, $A_ZClass, $A_ZEnd);
echo ‘by <a href=”http://www.link-assistent.org/a-zindex-wordpress-plugin-english.html” mce_href=”http://www.link-assistent.org/a-zindex-wordpress-plugin-english.html” >a-z-index for wp</a><br />’;
?>
5. go in your wordpress administration to themes – theme-editor and
there open the file 404.php
Find the line:
<h2 class=”center”>Error 404 – Not Found</h2>
Replace this line with:
<?php if (strlen($category_name)==1): ?>
<h2 class=”center”>Articles with “<?php echo strtoupper($category_name); ?>” :</h2>
<?php
$A_ZStart=’<li> ‘; // html part in front of <a href…
$A_ZClass=”; // html part in the href-tag example: css-style or target
$A_ZEnd =’</li> ‘;// html part after </a>
// example:
//[$A_ZStart]<a href=”http://www.domain.de” mce_href=”http://www.domain.de” [$A_ZClass]>domain</a>[$A_ZEnd]
echo A_ZIndexArticles($A_ZStart, $A_ZClass, $A_ZEnd, $category_name);
?><br />
<?php else: ?>
<h2 class=”center”>Error 404 – Not Found</h2>
<?php endif; ?>
6. finish – now enjoy your a-zindex