Wstawiam dla pomocy zawartość pliku template_1.php do którego odwołuje się archive.php. Plugin w znaczniku <h2> wykonuje podmianę ZA POMOCĄ <?php
if (function_exists('ghpseo_output'))
ghpseo_output('secondary_title');
else wp_title('', true);
?> title na drugi title2 oraz pod tym znacznikiem podmianę opisu posta (oryginalnie - the_excerpt() ) zastępując go swoim <?php
if (function_exists('ghpseo_output'))
ghpseo_output('description');
?>. Zajmie sporo miejsca:
<?php // ENTRIES ?> <?php $theme_options = get_option('po_theme'); $c = $theme_options['recent_posts_cat']; $s = $theme_options['recent_posts_quantity']; ?> <?php if (have_posts()) : ?> <div id="archive"> <?php while (have_posts()) : the_post(); ?> <div class="item it1"> <?php $image2 = get_post_meta($post->ID, 'full_image_value', true); //CHECK IMAGE POST if ($image2) { ?><a href="<?php the_permalink() ?>"><img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $image2 ?>&h=100&w=100&zc=1&q=90" width="100" height="100" alt="<?php the_title(); ?>" /></a><?php } //CHECK AUTOMATIC THUMB elseif (catch_that_image()<>"") { ?><a href="<?php the_permalink() ?>"><img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo catch_that_image() ?>&h=100&w=100&zc=1&q=90" width="100" height="100" alt="<?php the_title(); ?>" /></a><?php } // ELSE DEFAULT else { ?><a href="<?php the_permalink() ?>"><img src="<?php bloginfo('template_directory'); ?>/images/blog-thumb-100x100.jpg" width="100" height="100" alt="no image"/></a><?php ;} ?> <h2 class="pagetitle">ZMIANA TUTAJ <?php if (function_exists('ghpseo_output')) ghpseo_output('secondary_title'); else wp_title('', true); ?> </h2> <div class="l"><span class="tim"><?php the_time('M jS, Y'); ?></span><span class="com"><?php comments_popup_link('Bez komentarzy', '1 komentarz', '% komentarzy'); ?></span></div>ZMIANA TUTAJ<?php if (function_exists('ghpseo_output')) ghpseo_output('description'); ?> <div class="m"><?php the_tags('<span class="tag"> ', ', ', '</span>'); ?><span class="cat"><?php the_category(', ') ?></span></div> </div><!-- end item --> <?php endwhile; ?> <?php // PAGINATION if(function_exists('wp_pagenavi')) { ?><div id="wp-pagenavibox"><?php wp_pagenavi(); ?></div><?php } else { ?><div id="but-prev-next"><?php next_posts_link('« Poprzednia'); previous_posts_link('Następna »'); ?></div><?php } ?> <?php else : ?> <div id="archive"> <div class="item"> <p>Niestety, żadnych treści w tej kategorii.</p> </div> <?php endif; ?><?php if (function_exists('ghpseo_output')) ghpseo_output('description'); ?> </div><!-- end archive --> </div><!-- end contentbox -->
Jeśli jesteś w stanie mi pomóc bardzo bym prosił.
Pozdrawiam