es geht wieder. vielen dank! :D
Beiträge von bonk
-
-
tag.php:
PHP
Alles anzeigen<?php get_header(); $hasSidebar = ""; $sidebar = "true"; $hasSidebar = "hasRightSidebar"; ?> <div class="page-title-wrapper"> <div class="page-inner-title-wrapper"> <h1 class="custom-font page-heading container"> <?php _e('Tag:','h-framework'); single_tag_title(); ?></h1> </div> </div> <div class="container clearfix page <?php echo $hasSidebar; ?>"> <div class="breadcrumb-wrapper"><div class="breadcrumb clearfix"><?php $helper->the_breadcrumb();?></div></div> <div class="content clearfix"> <div class="<?php if($sidebar=="true") echo 'two-third-width'; else echo 'full-width'; ?>"> <div class="single-content"> <div class="posts-list clearfix posts-grid"> <?php global $paged; global $post; global $more ; query_posts("orderby=date".'&paged='.$paged); $image_width = 260; $image_height = 180; ?> <ul class="clearfix"> <?php $i = 0; if ( have_posts() ) : while ( have_posts() ) : the_post(); $more = 0; ?> <li class="clearfix <?php if($i%2==0) echo ' clearleft'; else echo ' clearright'; ?>"> <?php $width = "full"; if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) : $id = get_post_thumbnail_id(); $ar = wp_get_attachment_image_src( $id , array(9999,9999) ); $theImageSrc = $ar[0]; global $blog_id; if (isset($blog_id) && $blog_id > 0) { $imageParts = explode('/files/', $theImageSrc); if (isset($imageParts[1])) { $theImageSrc = '/blogs.dir/' . $blog_id . '/files/' . $imageParts[1]; } } $width = "half"; ?> <div class="imageholder"> <ul class="extra_info clearfix"> <li class="author">By <?php the_author_posts_link() ?> </li> <li class="date">on <?php echo get_the_date("j F Y"); ?> </li> <li class="comment">with <?php comments_number('No Comments', 'One Comment', '% Comments' );?> </li> </ul> <a href="<?php the_permalink(); ?>" > <?php echo "<img src='".get_bloginfo('template_directory')."/timthumb.php?src=".urlencode($theImageSrc)."&h={$image_height}&w={$image_width}' alt='postimage' />"; ?></a> </div> <?php else: $width = "full"; endif; ?> <div class="description <?php echo $width;?> "> <h2 class="custom-font"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <p> <?php global $more; // Declare global $more (before the loop). $more = 1; $content = get_the_content(''); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); $helper->shortenContent( 200, strip_tags( $content ) ); ?> </p> <a class="more-link" href="<?php the_permalink() ?>">Weiter →</a> </div> </li> <?php $i++; endwhile; else: _e( '<h4>No posts yet !</h4>' , 'h-framework' ); endif; ?> </ul> </div> <div class="pagination-panel clearfix"> <!-- Pagination --> <p class='pagination-prev'> <?php previous_posts_link("Vorherige Seite"); ?> </p> <p class='pagination-next'> <?php next_posts_link("Kommende Seite"); ?> </p> </div> </div> <!-- main content --> </div> <?php wp_reset_query(); if($sidebar=="true") get_sidebar(); ?> </div> </div> <?php get_footer(); ?>archive.php:
PHP
Alles anzeigen<?php get_header(); $hasSidebar = ""; $sidebar = "true"; $hasSidebar = "hasRightSidebar"; ?> <div class="page-title-wrapper"> <div class="page-inner-title-wrapper"> <h1 class="custom-font page-heading container"><?php the_title(); ?></h1> </div> </div> <div class="container clearfix page <?php echo $hasSidebar; ?>"> <div class="breadcrumb-wrapper"><div class="breadcrumb clearfix"><?php $helper->the_breadcrumb();?></div></div> <div class="content clearfix"> <div class="<?php if($sidebar=="true") echo 'two-third-width'; else echo 'full-width'; ?>"> <div class="single-content"> <div class="posts-list clearfix posts-grid"> <?php global $paged; global $post; global $more ; query_posts("orderby=date".'&paged='.$paged); $image_width = 260; $image_height = 180; ?> <ul class="clearfix"> <?php $i = 0; if ( have_posts() ) : while ( have_posts() ) : the_post(); $more = 0; ?> <li class="clearfix <?php if($i%2==0) echo ' clearleft'; else echo ' clearright'; ?>"> <?php $width = "full"; if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) : $id = get_post_thumbnail_id(); $ar = wp_get_attachment_image_src( $id , array(9999,9999) ); $theImageSrc = $ar[0]; global $blog_id; if (isset($blog_id) && $blog_id > 0) { $imageParts = explode('/files/', $theImageSrc); if (isset($imageParts[1])) { $theImageSrc = '/blogs.dir/' . $blog_id . '/files/' . $imageParts[1]; } } $width = "half"; ?> <div class="imageholder"> <ul class="extra_info clearfix"> <li class="author">By <?php the_author_posts_link() ?> </li> <li class="date">on <?php echo get_the_date("j F Y"); ?> </li> <li class="comment">with <?php comments_number('No Comments', 'One Comment', '% Comments' );?> </li> </ul> <a href="<?php the_permalink(); ?>" > <?php echo "<img src='".get_bloginfo('template_directory')."/timthumb.php?src=".urlencode($theImageSrc)."&h={$image_height}&w={$image_width}' alt='postimage' />"; ?></a> </div> <?php else: $width = "full"; endif; ?> <div class="description <?php echo $width;?> "> <h2 class="custom-font"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <p> <?php global $more; // Declare global $more (before the loop). $more = 1; $content = get_the_content(''); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); $helper->shortenContent( 200, strip_tags( $content ) ); ?> </p> <a class="more-link" href="<?php the_permalink() ?>">Weiter →</a> </div> </li> <?php $i++; endwhile; else: _e( '<h4>No posts yet !</h4>' , 'h-framework' ); endif; ?> </ul> </div> <div class="pagination-panel clearfix"> <!-- Pagination --> <p class='pagination-prev'> <?php previous_posts_link("Vorherige Seite"); ?> </p> <p class='pagination-next'> <?php next_posts_link("Kommende Seite"); ?> </p> </div> </div> <!-- main content --> </div> <?php wp_reset_query(); if($sidebar=="true") get_sidebar(); ?> </div> </div> <?php get_footer(); ?>Alle anderen Plugins deaktivieren:
-> behebt das Problem leider nichtOriginal Theme verwenden:
-> leider nicht mehr vorhanden, muss erst wieder zur Verfügung gestellt werden -
Hallo zusammen,
ich sitze jetzt schon seit mehreren Stunden an einem sehr nervigen Problem. Momentan ist es unserem Wordpressblog nicht möglich, die passenden Artikel zu den passenden Tags anzuzeigen. D.h. klicke ich zum Beispiel auf TAG A zu Thema A, zeigt er mir immer alle Themen an. Das ist leider bei allen Tags so. Wordpress scheint also irgendwie keine Filterung zu beginnen.
Kennt jemand zufällig eine Lösung des Problems?
Seite: http://www.yourenergyconsulting.de
Plugin: Ultimate tag cloud widget 1.3.12
Wordpress: WordPress 3.3.2 -
Ok, hab jetzt eine Seite und die entsprechende Kategorie ausgewählt. Wenn ich jetzt auf den Menüpunkt klicke steht auch Category: X da. Nur leider werden immer noch alle Artikel angezeigt. Warum?
EDIT: Hab doch noch etwas gefunden.
http://www.netzbuffet.de/wordpress-kate…seite-anzeigen/ -
Hallo zusammen.
Ich versuch mal zu erklären, was ich vorhabe bzw. was erwünscht ist.
Ich soll die erstellten Artikel in 2 verschiedene Kategorien trennen. -done
Diese möchte der Betreiber dann aber auch auf 2 verschiedene Menüpunkte aufteilen. Sagen wir mal ich hab den standart "Home"-Menüpunkt, "News"-Menüpunkt und den "Projektbeispiele"-Menüpunkt. Wie kann ich nun die Artikel der Kategorie X nur auf der News Seite anzeigen und wie die Artikel der Kategorie Y nur auf der Projektbeispiel Seite? Ist das so in Wordpress überhaupt möglich?Vielen Dank schon jetzt!
- aktuelleste Wordpress Version
EDIT: Es geht hauptsächlich auch darum, dass die Tags verwendet werden können. Nur leider funktioniert das meines Wissen nach nur bei Artikeln.