Hi, ich mag es eigentlich nicht besonders, in fremderen Themes PHP tiefschürfend zu verändern. auf dieser holländischen Page, (Theme durfte ich ins niederländische zwängen) blieb mir wenig übrig, obwohl ich mich nur für Designänderungen zuständig fühlte...
Das Problem, ein Bug im Dilectio-Theme, die Suchergebnisse werden nicht sauber in Pages abgelegt...
Ursprünglich verwendet das Theme WP-PageNavi, ich hab schon auf Pagebar umgerüstet, bringt aber auch nichts... ab 2.er Suchergebnisseite, werden einfach nur die getPaged Seiten des Blogs aufgelistet, und nicht mehr die der Suchanfrage entsprechenden...
Auf der ThemeAutorinseite, gibt es keine echte Lösung, weil bei dreimaliger Nachfrage anderer dort nur ein Hinweis zum nicesearch-pluginvon einemanderen user kam, was suchmaschinenfreundlicher noch ein search/ vor die pagenumber einfügt im URL, das funktioniert aber auch nicht (in jeder WP-Install)... bzw. kollidiert...
Im betreffenden Blog sind die Permalinks leicht verändert, was aber nichts ausmacht, weil nur der categoryslug mit ./ geändert, und datum weg...
der aktuellen Code der archive.php:
<?php get_header(); ?>
<!-- Container -->
<div class="CON">
<!-- Start SC -->
<div class="SC">
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2 class="pagetitle">Archief voor de ‘<strong><?php single_cat_title(); ?></strong>’ Category</h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2 class="pagetitle">Archief voor <?php the_time('F jS, Y'); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2 class="pagetitle">Archief voor <?php the_time('F, Y'); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class="pagetitle">Archief voor <?php the_time('Y'); ?></h2>
<?php /* If this is a search */ } elseif (is_search()) { ?>
<h2 class="pagetitle">Zoekresultaten/h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<div class="authorbox"><?php the_post(); userphoto_the_author_thumbnail(); rewind_posts(); ?><p><?php the_author_description(); ?></p></div>
<div style="clear:both;"> </div>
<h2 class="pagetitle">Auteur Archief</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class="pagetitle">Blog Archiefs</h2>
<?php } ?>
<!-- Start Nav -->
<?php if (function_exists('wp_pagebar')) wp_pagebar();?>
<!-- End Nav -->
<?php while (have_posts()) : the_post(); ?>
<div class="Post" id="post-<?php the_ID(); ?>" style="padding: 5px 0px;">
<div class="PostHead" style="margin-left: 0px;">
<h3><a title="Permanent Link to <?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<div class="entry">
<?php the_excerpt() ?>
</div>
<small class="PostAuthor">Geplaatst door <?php the_author() ?> op <?php the_time('j, F Y') ?></small>
<small class="PostCat">In: <?php the_category(', ') ?></small>
</div>
</div>
<?php endwhile; ?>
<!-- Start Nav -->
<?php if (function_exists('wp_pagebar')) wp_pagebar();?>
<!-- End Nav -->
<?php else : ?>
<h2 class="pagetitle">Not Found</h2>
<?php endif; ?>
</div>
<!-- End SC -->
<?php get_sidebar(); ?>
</div>
<!-- End CON -->
<?php get_footer(); ?>
Alles anzeigen
der code der search.php:
<?php get_header(); ?>
<!-- Container -->
<div class="CON">
<!-- Start SC -->
<div class="SC">
<?php if (have_posts()) : ?>
<h2 class="pagetitle">Zoekresultaten</h2>
<!-- Start Nav -->
<?php if (function_exists('wp_pagebar')) wp_pagebar();?>
<!-- End Nav -->
<?php while (have_posts()) : the_post(); ?>
<div class="Post" id="post-<?php the_ID(); ?>" style="padding: 15px 0px;">
<div class="PostHead" style="margin-left: 0px;">
<h3><a title="Permanent Link to <?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<small class="PostAuthor">door: <?php the_author() ?> op: <?php the_time('j, F Y') ?></small>
<small class="PostCat">In: <?php the_category(', ') ?></small>
</div>
<div class="PostContent" style="padding-top:0px;">
<?php the_excerpt() ?>
</div>
<div class="PostCom">
<ul>
<li class="Com"><?php comments_popup_link('0 reacties', '1 reactie', '% reacties'); ?></li>
<?php if (function_exists('the_tags')) { ?> <?php the_tags('<li class="Tags">trefwoorden: ', ', ', '</li>'); ?> <?php } ?>
</ul>
</div>
</div>
<?php endwhile; ?>
<!-- Start Nav -->
<?php if (function_exists('wp_pagebar')) wp_pagebar();?>
<!-- End Nav -->
<?php else : ?>
<h2 class="pagetitle">No posts found.</h2>
<p>Probeer een andere zoekopdracht?</p>
<?php endif; ?>
</div>
<!-- End SC -->
<?php get_sidebar(); ?>
</div>
<!-- End CON -->
<?php get_footer(); ?>
Alles anzeigen
Ein ECHTER PHP-Freak sieht da vielleicht gleich den Fehler...
ich bin schon betriebsblind, glaube ich...
Wär für Hilfe dankbar...
WP 2.3.3 dort... (2.5 scheint ja noch zu problematisch, nach meinen Blicken in verschiedenen Bereichen hier, oder im Blog)