maxe, vielen vielen dank !!
Nun ist alles so wie ich es gerne hätte *freu*
lg
kai
Beiträge von delta
-
-
hi maxe,
vielen dank - das hat mich schonmal einen entscheidenden Schritt weitergebracht - die Artikel werden nun innerhalb der Kategorien geöffnet, also ganz angezeigt, nachdem ich die index.php kopiert und in category.php umbenannt habe, sowie in ihr den Eintrag
<?php the_content('Lese weiter...'); ?> unter dem Titel hinzugefügt habe.
Allerdings ist die Schriftgrösse und Textformatierung der Artikel nun ganz anders als z.b. in dem Artikel, welcher auf der Startseite angezeigt wird.
Hier die neu erstellte category.php:PHP
Alles anzeigen<?php get_header(); ?> <div id="container"> <div id="main"> <?php if (is_tag()){ ?> <div class="strong"><?php _e('Tag: ', 'pyrmont_v2'); ?><span class="keyword"><?php single_cat_title() ?></span></div> <?php } elseif (is_category()){ ?> <div class="strong"><?php _e('Category: ', 'pyrmont_v2'); ?><span class="keyword"><?php single_cat_title() ?></span></div> <?php } ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post<?php if(function_exists (sticky_class)): sticky_class(); endif; ?>" id="post-<?php the_ID(); ?>"> <div class="date"> <?php the_time('Y') ?><br /> <?php the_time('m.d') ?> </div> <div class="title"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permalink to: ', 'pyrmont_v2'); ?><?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <?php the_content('Lese weiter...'); ?> <div class="postmeta"> <?php _e('Category', 'pyrmont_v2'); ?>: <span class="category"><?php the_category(', ') ?></span> / <?php $tag = get_the_tags(); if(!$tag){ echo __('Tags: no tag /', 'pyrmont_v2'); } else{ ?> <?php _e('Tag', 'pyrmont_v2'); ?>: <?php the_tags('<span>',', ','</span>'); ?> / <?php } ?> <span class="comments"><?php comments_popup_link(__('Add Comment', 'pyrmont_v2'), __('1 comment', 'pyrmont_v2'), __('% comments', 'pyrmont_v2')); ?></span> <?php edit_post_link(__('Edit', 'pyrmont_v2'), ' / ', ''); ?> </div><!-- end postmeta --> </div><!-- end title --> <div class="clear"></div> <?php if (!(is_tag()) && !(is_category())){ ?> <div class="entry"> <?php the_content(__('</p><p>Read More >></p>', 'pyrmont_v2')); ?> <div class="clear"></div> </div><!-- end entry --> <?php } ?> </div><!-- end post --> <?php endwhile; ?> <div class="navigation"> <div class="left"><?php next_posts_link(__('« Previous Entries', 'pyrmont_v2')); ?></div> <div class="right"><?php previous_posts_link(__('Next Entries »', 'pyrmont_v2')); ?></div> <div class="clear"></div> </div><!-- end navigation --> <?php else : ?> <div class="post"> <div class="title"> <h2><?php _e('Sorry, nothing found!', 'pyrmont_v2'); ?></h2> </div> <div class="clear"></div> <div class="entry no_result"> <p class="no_result"><?php _e('Please use the search function, or visit the archives page.', 'pyrmont_v2'); ?></p> </div> </div><!-- end post --> <?php endif; ?> </div><!-- end main --> <?php get_sidebar(); ?> <div class="clear"></div> </div><!-- end container --> <?php get_footer(); ?>
danke nochmal :)
lg
kai -
in deinen Templates fehlt dann überall der Aufruf von the_content().
hallo und danke für die antwort.
Bedeutet dass, dass ich die ausgeklappten Artikel mit dem verwendeten Theme generell bei Klick auf die Sidebar Kategegorien/artikel nicht darstellen lassen kann? Oder kann ich den [COLOR=#800080]the_content()[/COLOR]. Aufruf in den Seiten hinzufügen ? (Falls ja, wäre ein kurzes Beispiel toll, wie er aussehen müsste und in welchen Dateien.)
vielen dank
lg
kai -
Hallo,
sorry, dass diese Frage erneut gestellt wird, aber leider komme ich mit den in versch. Themen genannten Lösungsansätzen irgendwie nicht weiter... :(
Mein Problem ist,dass bei mir im Blog bei Klick auf die in der Sidebar befindlichen Kategorien und entsprechenden Artikel lediglich die Überschriften inkl. Links zu den jeweiligen Artikeln auf der Seite angezeigt werden. Ich hätte die Artikel aber gerne ausgeklappt - also ganz - angezeigt.
Leider kann ich die als Lösung geposteten Einträge in meinen php Dateien nicht finden. Ein Kopieren der index.php und umbenennen in category.php brachte auch leider kein Erfolg, da die Einträge nicht vorhanden waren, welche geändert werden sollen...
Über eine "Hilfestellung" wäre ich sehr dankbar :)
Nachfolgend meine index.php:
PHP
Alles anzeigen<?php get_header(); ?> <div id="container"> <div id="main"> <?php if (is_tag()){ ?> <div class="strong"><?php _e('Tag: ', 'pyrmont_v2'); ?><span class="keyword"><?php single_cat_title() ?></span></div> <?php } elseif (is_category()){ ?> <div class="strong"><?php _e('Category: ', 'pyrmont_v2'); ?><span class="keyword"><?php single_cat_title() ?></span></div> <?php } ?> <?php if (is_home()) { query_posts("cat=-4,-6"); } ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post<?php if(function_exists (sticky_class)): sticky_class(); endif; ?>" id="post-<?php the_ID(); ?>"> <div class="date"> <?php the_time('Y') ?><br /> <?php the_time('m.d') ?> </div> <div class="title"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permalink to: ', 'pyrmont_v2'); ?><?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <div class="postmeta"> <?php _e('Category', 'pyrmont_v2'); ?>: <span class="category"><?php the_category(', ') ?></span> / <?php $tag = get_the_tags(); if(!$tag){ echo __('Tags: no tag /', 'pyrmont_v2'); } else{ ?> <?php _e('Tag', 'pyrmont_v2'); ?>: <?php the_tags('<span>',', ','</span>'); ?> / <?php } ?> <span class="comments"><?php comments_popup_link(__('Add Comment', 'pyrmont_v2'), __('1 comment', 'pyrmont_v2'), __('% comments', 'pyrmont_v2')); ?></span> <?php edit_post_link(__('Edit', 'pyrmont_v2'), ' / ', ''); ?> </div><!-- end postmeta --> </div><!-- end title --> <div class="clear"></div> <?php if (!(is_tag()) && !(is_category())){ ?> <div class="entry"> <?php the_content(__('</p><p>Read More >></p>', 'pyrmont_v2')); ?> <div class="clear"></div> </div><!-- end entry --> <?php } ?> </div><!-- end post --> <?php endwhile; ?> <div class="navigation"> <div class="left"><?php next_posts_link(__('« Previous Entries', 'pyrmont_v2')); ?></div> <div class="right"><?php previous_posts_link(__('Next Entries »', 'pyrmont_v2')); ?></div> <div class="clear"></div> </div><!-- end navigation --> <?php else : ?> <div class="post"> <div class="title"> <h2><?php _e('Sorry, nothing found!', 'pyrmont_v2'); ?></h2> </div> <div class="clear"></div> <div class="entry no_result"> <p class="no_result"><?php _e('Please use the search function, or visit the archives page.', 'pyrmont_v2'); ?></p> </div> </div><!-- end post --> <?php endif; ?> </div><!-- end main --> <?php get_sidebar(); ?> <div class="clear"></div> </div><!-- end container --> <?php get_footer(); ?>
Und hier meine sidebar.php:
PHP
Alles anzeigen<div id="sidebar"> <ul> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?> <li> <h2><?php _e('Recent Posts', 'pyrmont_v2'); ?></h2> <ul class="latest_post"> <?php wp_get_archives('type=postbypost&limit=1'); ?> </ul> </li> <li> <h2><?php _e('Recent Comments', 'pyrmont_v2'); ?></h2> <ul class="recentcomment"> <?php rc(); ?> </ul> </li> <li> <h2><?php _e('Meta', 'pyrmont_v2'); ?></h2> <ul> <?php wp_register(); ?> <li><?php wp_loginout(); ?></li> </ul> </li> <?php endif; ?> </ul><!-- end ul --> </div><!-- end sidebar -->
Das verwendete Theme ist Pyrmont_v2.
lg
kai