Bilgisiolan varmı arkadaslar ??
yapman gerekir..
1- ci olarak bu kodu function.php ekIe
function BolumSystem( $args = "" ) {
$defaults = array( "before" => "".__( "".$bilgi."" ), "after" => "", "link_before" => "<span class=\"text\">", "link_after" => "</span>", "echo" => 1 );
$r = wp_parse_args( $args, $defaults );
extract( $r, EXTR_SKIP );
global $page;
global $numpages;
global $multipage;
global $more;
global $pagenow;
global $pages;
$output = "";
if ( $multipage ) {
$output .= $before;
$i = 1;
while ( $i < $numpages + 1 ) {
$part_content = $pages[$i - 1];
$has_part_title = strpos( $part_content, "<!--baslik:" );
if ( 0 === $has_part_title ) {
$end = strpos( $part_content, "-->" );
$title = trim( str_replace( "<!--baslik:", "", substr( $part_content, 0, $end ) ) );
}
$output .= "";
if ( $i != $page || !$more && $page == 1 ) {
}
?>
<li <?php $Urll = get_permalink()."".$i."/";
$Yeni = "http://".$_SERVER['HTTP_HOST']."".$_SERVER['REQUEST_URI']."";
$EYeni = "http://".$_SERVER['HTTP_HOST']."".$_SERVER['REQUEST_URI']."1/";
if($Urll == $Yeni || $Urll == $EYeni){echo "class='selected'";}?>>
<a href="<?php echo get_permalink() ?><?php echo $i ?>"> <span class="text"><?php echo ucwords($title); ?></span></a>
</li>
<?php
if ( $i != $page || !$more && $page == 1 ) {
$output .= "";
}
$i = $i + 1;
}
$output .= $after;
}
if ( $echo ) {
echo $output;
}
return $output;
}
2-ci olarak bu kodu singIe.php ekle
<?php BolumSystem(''); ?>
tamamdir bu kadar