Doch, die Frage ist noch aktuell, ich habe nur den bildtitel der thumbails auf "read more" gesetzt, damit das halbwegs sinn macht, falls man es nicht ausblenden kann. aber wäre selhr froh wenn man es sowohl bei den bildern, als auch bei dem posttitel (da steht dann Permalink to "xyz") ausblenden könnte...ist sonst halt doppelt gemoppelt und nur nervig..
Beiträge von Dailybloggger
-
-
guten abend zusammen. hab da mal ne frage, die wahrscheinlich für profis wie euch einfach zu beantworten ist..
ich möchte, dass KEIN Bildtitel beim Mouseover über meine verlinkten Bilder erscheint.und hier mal noch meine loop:
PHP
Alles anzeigen<?php /** * @package WordPress * @subpackage Coraline * @since Coraline 1.0 */ ?> <?php /* If there are no posts to display, such as an empty archive page */ ?> <?php if ( ! have_posts() ) : ?> <div id="post-0" class="post error404 not-found"> <h1 class="entry-title"><?php _e( 'Not Found', 'coraline' ); ?></h1> <div class="entry-content"> <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'coraline' ); ?></p> <?php get_search_form(); ?> </div><!-- .entry-content --> </div><!-- #post-0 --> <?php endif; ?> <?php // Start the Loop. $options = get_option( 'coraline_theme_options' ); while ( have_posts() ) : the_post(); ?> <?php /* How to display posts in the Gallery category. */ ?> <?php if ( isset( $options['gallery_category'] ) && '0' != $options['gallery_category'] && in_category( $options['gallery_category'] ) ) : ?> <div id="post-<?php the_ID(); ?>" <?php post_class( 'category-gallery' ); ?>> <h2 class="excerpt-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'coraline' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <div class="entry-meta"> <?php coraline_posted_on(); ?> </div><!-- .entry-meta --> <div class="entry-content"> <?php if ( post_password_required() ) : ?> <?php the_content(); ?> <?php else : ?> <?php $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) ); if ( $images ) : $total_images = count( $images ); $image = array_shift( $images ); $image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' ); ?> <div class="gallery-thumb"> <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a> </div><!-- .gallery-thumb --> <p><em><?php printf( __( 'This gallery contains <a %1$s>%2$s photos</a>.', 'coraline' ), 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'coraline' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"', $total_images ); ?></em></p> <?php endif; ?> <?php the_excerpt(); ?> <?php endif; ?> </div><!-- .entry-content --> <div class="entry-info"> <span class="comments-link"><?php comments_popup_link( __( '→ Leave a comment', 'coraline' ), __( '→ 1 Comment', 'coraline' ), __( '→ % Comments', 'coraline' ) ); ?></span> <p><a href="<?php echo get_term_link( $options['gallery_category'], 'category' ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'coraline' ); ?>"><?php _e( 'More Galleries', 'coraline' ); ?></a></p> <p><?php edit_post_link( __( 'Edit', 'coraline' ), '', '' ); ?></p> </div><!-- .entry-info --> </div><!-- #post-## --> <?php /* How to display posts in the asides category */ ?> <?php elseif ( isset( $options['aside_category'] ) && '0' != $options['aside_category'] && in_category( $options['aside_category'] ) ) : ?> <div id="post-<?php the_ID(); ?>" <?php post_class( 'category-asides' ); ?>> <?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?> <div class="entry-summary aside"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content aside"> <?php the_content( __( 'Read more <span class="meta-nav">→</span>', 'coraline' ) ); ?> </div><!-- .entry-content --> <?php endif; ?> <div class="entry-info"> <p class="comments-link"><?php comments_popup_link( __( '→ Leave a comment', 'coraline' ), __( '→ 1 Comment', 'coraline' ), __( '→ % Comments', 'coraline' ) ); ?></p> <p><?php coraline_posted_on(); ?></p> <?php edit_post_link( __( 'Edit', 'coraline' ), '', '' ); ?> </div><!-- .entry-info --> </div><!-- #post-## --> <?php /* How to display all other posts. */ ?> <?php else : ?> <?php $halfstyle = ($counter%2 == 0) ? 'left-half' : 'right-half'; $counter++; //EDIT: for two columns ?> <div id="post-<?php the_ID(); ?>"<?php post_class($halfstyle); ?>> <div class="featured-image"><a href="<?php the_permalink(); ?><?php printf(esc_attr__( 'Permalink to %s', 'coraline' ) ); ?> " rel="bookmark"><?php the_post_thumbnail (); ?></a> </div><!-- .featured-image --> <h2 class="excerpt-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'coraline' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <?php if ( is_search() ) : // Display excerpts for search. ?> <div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <?php else : ?> <div class="excerpt"> <?php the_excerpt( __( 'Read more <span class="meta-nav">→</span>', 'coraline' ) ); ?> <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'coraline' ), 'after' => '</div>' ) ); ?> </div><!-- .excerpt --> <?php endif; ?> </div><!-- #post-## --> <?php comments_template( '', true ); ?> <?php endif; // This was the if statement that broke the loop into three parts based on categories. ?> <?php endwhile; // End the loop. Whew. ?> <?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?>dankööö :lol:
-
also nachdem ich deinen letzten vorschlag bzgl. functions.php geändert habe, werden die bilder zumindest auf die richtige breite skaliert. jetzt ist aber das problem, dass sie auf 85px höhe abgeschnitten werden:
http://www.dailyimpulse.de/category/art/(Alle bilder die größer angezeigt werden, habe ich nachträglich zu testzwecken hochgeladen - es geht darum die kleinen bilder mit 85px höhe auf 205px zu bekommen. und zwar nicht zu verziehen sondern einfach einen höheren bildausschnitt zu zeigen......)
-
Seit ich meinen Blog auf 2 Spalten umgebaut habe (bin immernoch dran, daher ist alles noch etwas chaotisch), ist meine Naviagation (Older/Newer Posts) verschwunden...Ich will dass diese unten unter den letzten beiden beiträgen erscheint...hier die loop:
PHP
Alles anzeigen<?php /** * @package WordPress * @subpackage Coraline * @since Coraline 1.0 */ ?> <?php /* Display navigation to next/previous pages when applicable */ ?> <?php if ( $wp_query->max_num_pages > 1 ) : ?> <div id="nav-above" class="navigation"> <div class="nav-next"><?php next_posts_link( __( 'Older posts <span class="meta-nav">→</span>', 'coraline' ) ); ?></div> <div class="nav-previous"><?php previous_posts_link( __( '<span class="meta-nav">←</span> Newer posts', 'coraline' ) ); ?></div> </div><!-- #nav-above --> <?php endif; ?> <?php /* If there are no posts to display, such as an empty archive page */ ?> <?php if ( ! have_posts() ) : ?> <div id="post-0" class="post error404 not-found"> <h1 class="entry-title"><?php _e( 'Not Found', 'coraline' ); ?></h1> <div class="entry-content"> <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'coraline' ); ?></p> <?php get_search_form(); ?> </div><!-- .entry-content --> </div><!-- #post-0 --> <?php endif; ?> <?php // Start the Loop. $options = get_option( 'coraline_theme_options' ); while ( have_posts() ) : the_post(); ?> <?php /* How to display posts in the Gallery category. */ ?> <?php if ( isset( $options['gallery_category'] ) && '0' != $options['gallery_category'] && in_category( $options['gallery_category'] ) ) : ?> <div id="post-<?php the_ID(); ?>" <?php post_class( 'category-gallery' ); ?>> <h2 class="excerpt-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'coraline' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <div class="entry-meta"> <?php coraline_posted_on(); ?> </div><!-- .entry-meta --> <div class="entry-content"> <?php if ( post_password_required() ) : ?> <?php the_content(); ?> <?php else : ?> <?php $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) ); if ( $images ) : $total_images = count( $images ); $image = array_shift( $images ); $image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' ); ?> <div class="gallery-thumb"> <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a> </div><!-- .gallery-thumb --> <p><em><?php printf( __( 'This gallery contains <a %1$s>%2$s photos</a>.', 'coraline' ), 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'coraline' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"', $total_images ); ?></em></p> <?php endif; ?> <?php the_excerpt(); ?> <?php endif; ?> </div><!-- .entry-content --> <div class="entry-info"> <span class="comments-link"><?php comments_popup_link( __( '→ Leave a comment', 'coraline' ), __( '→ 1 Comment', 'coraline' ), __( '→ % Comments', 'coraline' ) ); ?></span> <p><a href="<?php echo get_term_link( $options['gallery_category'], 'category' ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'coraline' ); ?>"><?php _e( 'More Galleries', 'coraline' ); ?></a></p> <p><?php edit_post_link( __( 'Edit', 'coraline' ), '', '' ); ?></p> </div><!-- .entry-info --> </div><!-- #post-## --> <?php /* How to display posts in the asides category */ ?> <?php elseif ( isset( $options['aside_category'] ) && '0' != $options['aside_category'] && in_category( $options['aside_category'] ) ) : ?> <div id="post-<?php the_ID(); ?>" <?php post_class( 'category-asides' ); ?>> <?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?> <div class="entry-summary aside"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content aside"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'coraline' ) ); ?> </div><!-- .entry-content --> <?php endif; ?> <div class="entry-info"> <p class="comments-link"><?php comments_popup_link( __( '→ Leave a comment', 'coraline' ), __( '→ 1 Comment', 'coraline' ), __( '→ % Comments', 'coraline' ) ); ?></p> <p><?php coraline_posted_on(); ?></p> <?php edit_post_link( __( 'Edit', 'coraline' ), '', '' ); ?> </div><!-- .entry-info --> </div><!-- #post-## --> <?php /* How to display all other posts. */ ?> <?php else : ?> <?php $halfstyle = ($counter%2 == 0) ? 'left-half' : 'right-half'; $counter++; //EDIT: for two columns ?> <div id="post-<?php the_ID(); ?>" <?php post_class($halfstyle); ?>> <div class="image-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'coraline' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"></a> <div class="featured-image"><a href="<?php the_permalink(); ?> " title="<?php printf( esc_attr__( 'Permalink to %s', 'coraline' ), the_title_attribute( 'echo=0' ) ); ?>"rel="bookmark"><?php the_post_thumbnail (); ?></a> <h2 class="excerpt-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'coraline' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> </div><!-- .featured-image --> </div><!-- .image-title --> <?php if ( is_search() ) : // Display excerpts for search. ?> <div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <?php else : ?> <div class="excerpt"> <?php the_excerpt( __( 'Continue reading <span class="meta-nav">→</span>', 'coraline' ) ); ?> <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'coraline' ), 'after' => '</div>' ) ); ?> </div><!-- .excerpt --> <?php endif; ?> </div><!-- #post-## --> <?php comments_template( '', true ); ?> <?php endif; // This was the if statement that broke the loop into three parts based on categories. ?> <?php endwhile; // End the loop. Whew. ?> <br> <?php /* Display navigation to next/previous pages when applicable */ ?> <?php if ( $wp_query->max_num_pages > 1 ) : ?> <div id="nav-below" class="navigation"> <div class="nav-next"><?php next_posts_link( __( 'Older posts <span class="meta-nav">→</span>', 'coraline' ) ); ?></div> <div class="nav-previous"><?php previous_posts_link( __( '<span class="meta-nav">←</span> Newer posts', 'coraline' ) ); ?></div> </div><!-- #nav-below --> <?php endif; ?>da steht sie ja drin, aber warum wird sie nicht angezeigt?!? :-?
-
ich habe die bilder (also die ersten paar auf der startseite) ja schon in meinen gewünschten maßen (295x205px) gespeichert, neu hochgeladen und eingebunden...aber es schneidet die einfach immer ab....werd noch verrückt :( wo könnt ich denn noch danach suchen? hab auch in den mediathek-voreinstellungen schon alle maße ausprobiert, ändert sich auch nix...:confused:
-
Hmm...tut sich mal wieder nix...:(
-
juhu, endlich mal wieder ein erfolg! vielen dank!
wenn ich jetzt nur noch wüsste warum mein feature image abgeschnitten wird. ich will 205 px höhe, aber es wird immer konsequent auf 180 geschnitten. wenn ich dann per style.css 205 festlege, verzieht er es einfach in die höhe...:? -
ich kann nur abends an der seite arbeiten, daher stell ich sie tagsüber wieder auf die alten einstellungen zurück, damit meine besucher sich zurechtfinden ;)
mir ist der scrollbalken lieber als wenn sich mein design ständig ineinander verschiebt wenn mal jemand ein kleines display hat... weißt du wie das gehen würde mit dem balken?
und das problem mit dem angeschnittenen featured image hab ich leider immernoch.... -
achso, ja das ist eine andere sache. ich muss das noch irgendwie hinbekommen dass er das layout nicht zusammenschiebt, sondern unten ein scrollbalken erscheint - weißt du wie ich das mache?
-
hmmm.also danke, aer warum soll ich alles auf 245 anpassen? die beiden spalten sind doch jeweils 295px breit? in der stelle in der functions.php hab ich schon alles mögliche an werten ausprobiert, hat gar keine veränderung gezeigt. ich habe ein paar probethumbnails in der größe 295x205 gespeichert. aber auf der seite beschneidet er die immer auf 180px Höhe. Kann sie dann zwar wieder auf 205 ziehen, aber dann verzieht er sie statt einfach das abgeschnittene stück anzusetzten....versteht man das?!?
-
Teil 3:
PHP
Alles anzeigen/** Register sidebars by running coraline_widgets_init() on the widgets_init hook. */ add_action( 'widgets_init', 'coraline_widgets_init' ); /** * Removes the default styles that are packaged with the Recent Comments widget. * * @since Coraline 1.0 */ function coraline_remove_recent_comments_style() { global $wp_widget_factory; remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) ); } add_action( 'widgets_init', 'coraline_remove_recent_comments_style' ); if ( ! function_exists( 'coraline_posted_on' ) ) : /** * Prints HTML with meta information for the current post—date/time and author. * * @since Coraline 1.0 */ function coraline_posted_on() { // use the "byline" class to hide the author name and link. We should make this appear automatically with a multi-author conditional tag in the future printf( __( '<span class="%1$s">Posted on</span> %2$s <span class="%4$s"><span class="meta-sep">by</span> %3$s</span>', 'coraline' ), 'meta-prep meta-prep-author', sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>', get_permalink(), esc_attr( get_the_time() ), get_the_date() ), sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>', get_author_posts_url( get_the_author_meta( 'ID' ) ), sprintf( esc_attr__( 'View all posts by %s', 'coraline' ), get_the_author() ), get_the_author() ), 'byline' ); } endif; if ( ! function_exists( 'coraline_posted_in' ) ) : /** * Prints HTML with meta information for the current post (category, tags and permalink). * * @since Coraline 1.0 */ function coraline_posted_in() { // Retrieves tag list of current post, separated by commas. $tag_list = get_the_tag_list( '', ', ' ); if ( $tag_list ) { $posted_in = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'coraline' ); } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) { $posted_in = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'coraline' ); } else { $posted_in = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'coraline' ); } // Prints the string, replacing the placeholders. printf( $posted_in, get_the_category_list( ', ' ), $tag_list, get_permalink(), the_title_attribute( 'echo=0' ) ); } endif; /** * Returns the current Coraline color scheme as selected in the theme options * * @since Coraline 1.0 */ function coraline_current_color_scheme() { $options = get_option( 'coraline_theme_options' ); return $options['color_scheme']; } /** * Register our color schemes and add them to the queue */ function coraline_color_registrar() { if ( 'dark' == coraline_current_color_scheme() ) { wp_register_style( 'dark', get_template_directory_uri() . '/colors/dark.css', null, null ); wp_enqueue_style( 'dark' ); } } add_action( 'wp_print_styles', 'coraline_color_registrar' ); /** * Returns the current Coraline layout as selected in the theme options * * @since Coraline 1.0 */ function coraline_current_layout() { $options = get_option( 'coraline_theme_options' ); $current_layout = $options['theme_layout']; $two_columns = array( 'content-sidebar', 'sidebar-content' ); if ( in_array( $current_layout, $two_columns ) ) return 'two-column ' . $current_layout; else return 'three-column ' . $current_layout; } /** * Adds coraline_current_layout() to the array of body classes * * @since Coraline 1.0 */ function coraline_body_class($classes) { $classes[] = coraline_current_layout(); return $classes; } add_filter( 'body_class', 'coraline_body_class' );Könnt ihr mir weiterhelfen???
-
Teil 2
PHP
Alles anzeigen/** * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and coraline_continue_reading_link(). * * @since Coraline 1.0 * @return string An ellipsis */ function coraline_auto_excerpt_more( $more ) { return ' …' . coraline_continue_reading_link(); } add_filter( 'excerpt_more', 'coraline_auto_excerpt_more' ); add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 295, 250, true ); // Normal post thumbnails add_image_size( 'single-post-thumbnail', 295, 9999 ); // Permalink thumbnail size /** * Adds a pretty "Continue Reading" link to custom post excerpts. * * @since Coraline 1.0 * @return string Excerpt with a pretty "Continue Reading" link */ function coraline_custom_excerpt_more( $output ) { if ( has_excerpt() && ! is_attachment() ) { $output .= coraline_continue_reading_link(); } return $output; } add_filter( 'get_the_excerpt', 'coraline_custom_excerpt_more' ); /** * Remove inline styles printed when the gallery shortcode is used. * * Galleries are styled by the theme in Coraline's style.css. * * @since Coraline 1.0 * @return string The gallery style filter, with the styles themselves removed. */ function coraline_remove_gallery_css( $css ) { return preg_replace( "#<style type='text/css'>(.*?)</style>#s", '', $css ); } add_filter( 'gallery_style', 'coraline_remove_gallery_css' ); if ( ! function_exists( 'coraline_comment' ) ) : /** * Template for comments and pingbacks. * * To override this walker in a child theme without modifying the comments template * simply create your own coraline_comment(), and that function will be used instead. * * @since Coraline 1.0 */ function coraline_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case '' : ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> <div id="comment-<?php comment_ID(); ?>"> <div class="comment-author vcard"> <?php echo get_avatar( $comment, 48 ); ?> <cite class="fn"><?php comment_author_link(); ?></cite> <span class="comment-meta commentmetadata"> | <a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"> <?php /* translators: 1: date, 2: time */ printf( __( '%1$s at %2$s', 'coraline' ), get_comment_date(), get_comment_time() ); ?></a> | <?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> <?php edit_comment_link( __( 'Edit', 'coraline' ), ' | ' ); ?> </span><!-- .comment-meta .commentmetadata --> </div><!-- .comment-author .vcard --> <?php if ( $comment->comment_approved == '0' ) : ?> <em><?php _e( 'Your comment is awaiting moderation.', 'coraline' ); ?></em> <br /> <?php endif; ?> <div class="comment-body"><?php comment_text(); ?></div> </div><!-- #comment-## --> <?php break; case 'pingback' : case 'trackback' : ?> <li class="post pingback"> <p><?php _e( 'Pingback:', 'coraline' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'coraline' ), ' ' ); ?></p> <?php break; endswitch; } endif; /** * Register widgetized areas, including two sidebars and four widget-ready columns in the footer. * * @since Coraline 1.0 * @uses register_sidebar */ function coraline_widgets_init() { // Area 1, located at the top of the sidebar. register_sidebar( array( 'name' => __( 'Primary Widget Area', 'coraline' ), 'id' => 'sidebar-1', 'description' => __( 'The primary widget area', 'coraline' ), 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', 'after_widget' => '</li>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); // Area 2, located below the Primary Widget Area in the sidebar. Empty by default. register_sidebar( array( 'name' => __( 'Secondary Widget Area', 'coraline' ), 'id' => 'secondary-widget-area', 'description' => __( 'The secondary widget area appears in 3-column layouts', 'coraline' ), 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', 'after_widget' => '</li>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); // Area 3, located above the primary and secondary sidebars in Content-Sidebar-Sidebar and Sidebar-Sidebar-Content layouts. Empty by default. register_sidebar( array( 'name' => __( 'Feature Widget Area', 'coraline' ), 'id' => 'feature-widget-area', 'description' => __( 'The feature widget above the sidebars in Content-Sidebar-Sidebar and Sidebar-Sidebar-Content layouts', 'coraline' ), 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', 'after_widget' => '</li>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); // Area 4, located in the footer. Empty by default. register_sidebar( array( 'name' => __( 'First Footer Widget Area', 'coraline' ), 'id' => 'first-footer-widget-area', 'description' => __( 'The first footer widget area', 'coraline' ), 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', 'after_widget' => '</li>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); // Area 5, located in the footer. Empty by default. register_sidebar( array( 'name' => __( 'Second Footer Widget Area', 'coraline' ), 'id' => 'second-footer-widget-area', 'description' => __( 'The second footer widget area', 'coraline' ), 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', 'after_widget' => '</li>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); // Area 6, located in the footer. Empty by default. register_sidebar( array( 'name' => __( 'Third Footer Widget Area', 'coraline' ), 'id' => 'third-footer-widget-area', 'description' => __( 'The third footer widget area', 'coraline' ), 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', 'after_widget' => '</li>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); // Area 7, located in the footer. Empty by default. register_sidebar( array( 'name' => __( 'Fourth Footer Widget Area', 'coraline' ), 'id' => 'fourth-footer-widget-area', 'description' => __( 'The fourth footer widget area', 'coraline' ), 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', 'after_widget' => '</li>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); } -
[FONT=monospace]Mein bLog ist momentan etwas chaotisch, da die ausgewählten feature images einfach nicht auf die breite der spalten angepasst werden. habe sämtliche foren durchgelesen und alles nach anleitung in der functions.php geändert, aber es ändert sich nichts.
Die ersten beiden Beiträge stimmen nur, weil ich da die Bilder in entspr. Größe gespeichert hab. bei den restlichen soll wordpress das selbst anpassen.
[/FONT][FONT=monospace]die functions.php muss ich aufsplitten, weil ich hier sonst die maximale zeichenzahl überschreite:
Teil 1:
[/FONT]PHP
Alles anzeigen<?php /** * Set the content width based on the theme's design and stylesheet. */ if ( ! isset( $content_width ) ) $content_width = 500; $themecolors = array( 'bg' => 'ffffff', 'text' => '000000', 'link' => '0060ff' ); /** Tell WordPress to run coraline_setup() when the 'after_setup_theme' hook is run. */ add_action( 'after_setup_theme', 'coraline_setup' ); if ( ! function_exists( 'coraline_setup' ) ): /** * Sets up theme defaults and registers support for various WordPress features. * * To override coraline_setup() in a child theme, add your own coraline_setup to your child theme's * functions.php file. * * @uses add_theme_support() To add support for post thumbnails and automatic feed links. * @uses register_nav_menus() To add support for navigation menus. * @uses add_custom_background() To add support for a custom background. * @uses add_editor_style() To style the visual editor. * @uses load_theme_textdomain() For translation/localization support. * @uses add_custom_image_header() To add support for a custom header. * @uses register_default_headers() To register the default custom header images provided with the theme. * @uses set_post_thumbnail_size() To set a custom post thumbnail size. * * @since Coraline 1.0 */ function coraline_setup() { // This theme has some pretty cool theme options require_once ( get_template_directory() . '/inc/theme-options.php' ); // This theme styles the visual editor with editor-style.css to match the theme style. add_editor_style(); // This theme uses post thumbnails add_theme_support( 'post-thumbnails' ); // Add default posts and comments RSS feed links to head add_theme_support( 'automatic-feed-links' ); // Make theme available for translation // Translations can be filed in the /languages/ directory load_theme_textdomain( 'coraline', TEMPLATEPATH . '/languages' ); $locale = get_locale(); $locale_file = TEMPLATEPATH . "/languages/$locale.php"; if ( is_readable( $locale_file ) ) require_once( $locale_file ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => __( 'Primary Navigation', 'coraline' ), ) ); // This theme allows users to set a custom background add_custom_background(); // Your changeable header business starts here define( 'HEADER_TEXTCOLOR', '000' ); // No CSS, just an IMG call. The %s is a placeholder for the theme template directory URI. define( 'HEADER_IMAGE', '%s/images/headers/water-drops.jpg' ); // The height and width of your custom header. You can hook into the theme's own filters to change these values. // Add a filter to coraline_header_image_width and coraline_header_image_height to change these values. define( 'HEADER_IMAGE_WIDTH', apply_filters( 'coraline_header_image_width', 990 ) ); define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'coraline_header_image_height', 180 ) ); // We'll be using post thumbnails for custom header images on posts and pages. // We want them to be 940 pixels wide by 198 pixels tall. // Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php. set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true ); // Add a way for the custom header to be styled in the admin panel that controls // custom headers. See coraline_admin_header_style(), below. add_custom_image_header( 'coraline_header_style', 'coraline_admin_header_style', 'coraline_admin_header_image' ); // ... and thus ends the changeable header business. // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI. register_default_headers( array( 'water-drops' => array( 'url' => '%s/images/headers/water-drops.jpg', 'thumbnail_url' => '%s/images/headers/water-drops-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Water drops', 'coraline' ) ), 'limestone-cave' => array( 'url' => '%s/images/headers/limestone-cave.jpg', 'thumbnail_url' => '%s/images/headers/limestone-cave-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Limestone cave', 'coraline' ) ), 'Cactii' => array( 'url' => '%s/images/headers/cactii.jpg', 'thumbnail_url' => '%s/images/headers/cactii-thumbnail.jpg', /* translators: header image description */ 'description' => __( 'Cactii', 'coraline' ) ) ) ); } endif; if ( ! function_exists( 'coraline_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @since Coraline 1.0 */ function coraline_header_style() { // If no custom options for text are set, let's bail // get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value if ( HEADER_TEXTCOLOR == get_header_textcolor() ) return; // If we get this far, we have custom styles. Let's do this. ?> <style type="text/css"> <?php // Has the text been hidden? if ( 'blank' == get_header_textcolor() ) : ?> #site-title, #site-description { position: absolute; left: -9000px; } <?php // If the user has set a custom color for the text use that else : ?> #site-title a, #site-description { color: #<?php echo get_header_textcolor(); ?> !important; } <?php endif; ?> </style> <?php } endif; if ( ! function_exists( 'coraline_admin_header_style' ) ) : /** * Styles the header image displayed on the Appearance > Header admin panel. * * Referenced via add_custom_image_header() in coraline_setup(). * * @since Coraline 1.0 */ function coraline_admin_header_style() { ?> <style type="text/css"> .appearance_page_custom-header #headimg { background: #<?php echo get_background_color(); ?>; border: none; text-align: center; } #headimg h1, #desc { font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif; } #headimg h1 { margin: 0; } #headimg h1 a { font-size: 36px; letter-spacing: -0.03em; line-height: 42px; text-decoration: none; } #desc { font-size: 18px; line-height: 31px; padding: 0 0 9px 0; } <?php // If the user has set a custom color for the text use that if ( get_header_textcolor() != HEADER_TEXTCOLOR ) : ?> #site-title a, #site-description { color: #<?php echo get_header_textcolor(); ?>; } <?php endif; ?> #headimg img { max-width: 990px; width: 100%; } </style> <?php } endif; if ( ! function_exists( 'coraline_admin_header_image' ) ) : /** * Custom header image markup displayed on the Appearance > Header admin panel. * * Referenced via add_custom_image_header() in coraline_setup(). * * @since Coraline 1.0 */ function coraline_admin_header_image() { ?> <div id="headimg"> <?php if ( 'blank' == get_theme_mod( 'header_textcolor', HEADER_TEXTCOLOR ) || '' == get_theme_mod( 'header_textcolor', HEADER_TEXTCOLOR ) ) $style = ' style="display:none;"'; else $style = ' style="color:#' . get_theme_mod( 'header_textcolor', HEADER_TEXTCOLOR ) . ';"'; ?> <h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo home_url( '/' ); ?>"><?php bloginfo( 'name' ); ?></a></h1> <div id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div> <img src="<?php esc_url ( header_image() ); ?>" alt="" /> </div> <?php } endif; /** * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link. * * @since Coraline 1.0 */ function coraline_page_menu_args( $args ) { $args['show_home'] = true; return $args; } add_filter( 'wp_page_menu_args', 'coraline_page_menu_args' ); /** * Sets the post excerpt length to 40 characters. * * @since Coraline 1.0 * @return int */ function coraline_excerpt_length( $length ) { return 40; } add_filter( 'excerpt_length', 'coraline_excerpt_length' ); /** * Returns a "Continue Reading" link for excerpts * * @since Coraline 1.0 * @return string "Continue Reading" link */ function coraline_continue_reading_link() { return ' <a href="'. get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">→</span>', 'coraline' ) . '</a>'; } -
keiner da? kann doch jetzt nicht mehr so schwer sein, oder? ich weiß einfach nicht wo der content der hauptseite zu finden ist....biiiiiiiitte helft mir!
1. was muss ich tun, damit nur der excerpt erscheint und nicht der content
2. wie bekomme ich das thumbnail darüber
3. wo sind meine seitennavigationspfeile hin?!
:razz: -
also den excerpt hab ich jetzt irgendwie hinbekommen, aber ich bekomme den content nicht weg...hab hier mal ein bild angehängt, wie ich mir das am ende vorstelle.
http://www.dailyimpulse.de/wp-content/upl…ulse-design.jpg
wichtig ist eben, dass das thumbnail immer gleich groß ist und am besten separat festgelegt werden kann (z.b. als featured image oder über custom fields - damit kenn ich mich aber noch nicht aus)...was ich nun also noch wissen muss:
1. was muss ich tun, damit nur der excerpt erscheint und nicht der content
2. wie bekomme ich das thumbnail darüber
3. wo sind meine seitennavigationspfeile hin?! -
oh mann, da sind sie schon, die nächsten fragen:
wie genau gehts jetzt weiter wenn ich nur ein thumbnail (optimalerweise vom featured image), den titel und den exerpt dargestellt haben möchte?? :oops: sorry, alles ganz neu für mich.... -
juhuuuuuuu, das erklärt dass so einige änderungsn nicht sichtbar waren, ich wusste nicht dass ich das nicht in den print-style legen durfte (das hab ich unbewusst gemacht weil ichs da unten immer wieder schnell gefunden hab :oops:)
viiiielen dank, jetzt bastel ich weiter - hoffe du bist noch ein bisschen hier online falls ich noch mehr fragen hab :D
-
vielen dank erstmal - leider funktioniert das auch nicht....was mach ich nur falsch, hier meine abgeänderte loop:
PHP
Alles anzeigen<?php /** * @package WordPress * @subpackage Coraline * @since Coraline 1.0 */ ?> <?php /* Display navigation to next/previous pages when applicable */ ?> <?php if ( $wp_query->max_num_pages > 1 ) : ?> <div id="nav-above" class="navigation"> <div class="nav-next"><?php next_posts_link( __( 'Older posts <span class="meta-nav">→</span>', 'coraline' ) ); ?></div> <div class="nav-previous"><?php previous_posts_link( __( '<span class="meta-nav">←</span> Newer posts', 'coraline' ) ); ?></div> </div><!-- #nav-above --> <?php endif; ?> <?php /* If there are no posts to display, such as an empty archive page */ ?> <?php if ( ! have_posts() ) : ?> <div id="post-0" class="post error404 not-found"> <h1 class="entry-title"><?php _e( 'Not Found', 'coraline' ); ?></h1> <div class="entry-content"> <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'coraline' ); ?></p> <?php get_search_form(); ?> </div><!-- .entry-content --> </div><!-- #post-0 --> <?php endif; ?> <?php // Start the Loop. $counter = 0; //EDIT: counter for two columns $options = get_option( 'coraline_theme_options' ); while ( have_posts() ) : the_post(); ?> <?php /* How to display posts in the Gallery category. */ ?> <?php if ( isset( $options['gallery_category'] ) && '0' != $options['gallery_category'] && in_category( $options['gallery_category'] ) ) : ?> <div id="post-<?php the_ID(); ?>" <?php post_class( 'category-gallery' ); ?>> <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'coraline' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <div class="entry-meta"> <?php coraline_posted_on(); ?> </div><!-- .entry-meta --> <div class="entry-content"> <?php if ( post_password_required() ) : ?> <?php the_content(); ?> <?php else : ?> <?php $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) ); if ( $images ) : $total_images = count( $images ); $image = array_shift( $images ); $image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' ); ?> <div class="gallery-thumb"> <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a> </div><!-- .gallery-thumb --> <p><em><?php printf( __( 'This gallery contains <a %1$s>%2$s photos</a>.', 'coraline' ), 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'coraline' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"', $total_images ); ?></em></p> <?php endif; ?> <?php the_excerpt(); ?> <?php endif; ?> </div><!-- .entry-content --> <div class="entry-info"> <span class="comments-link"><?php comments_popup_link( __( '→ Leave a comment', 'coraline' ), __( '→ 1 Comment', 'coraline' ), __( '→ % Comments', 'coraline' ) ); ?></span> <p><a href="<?php echo get_term_link( $options['gallery_category'], 'category' ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'coraline' ); ?>"><?php _e( 'More Galleries', 'coraline' ); ?></a></p> <p><?php edit_post_link( __( 'Edit', 'coraline' ), '', '' ); ?></p> </div><!-- .entry-info --> </div><!-- #post-## --> <?php /* How to display posts in the asides category */ ?> <?php elseif ( isset( $options['aside_category'] ) && '0' != $options['aside_category'] && in_category( $options['aside_category'] ) ) : ?> <div id="post-<?php the_ID(); ?>" <?php post_class( 'category-asides' ); ?>> <?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?> <div class="entry-summary aside"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content aside"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'coraline' ) ); ?> </div><!-- .entry-content --> <?php endif; ?> <div class="entry-info"> <p class="comments-link"><?php comments_popup_link( __( '→ Leave a comment', 'coraline' ), __( '→ 1 Comment', 'coraline' ), __( '→ % Comments', 'coraline' ) ); ?></p> <p><?php coraline_posted_on(); ?></p> <?php edit_post_link( __( 'Edit', 'coraline' ), '', '' ); ?> </div><!-- .entry-info --> </div><!-- #post-## --> <?php /* How to display all other posts. */ ?> <?php else : ?> <?php $halfstyle = ($counter%2 == 0) ? 'left-half' : 'right-half'; $counter++; //EDIT: for two columns ?> <div id="post-<?php the_ID(); ?>" <?php post_class($halfstyle); ?>> <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'coraline' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <div class="entry-meta"> <?php coraline_posted_on(); ?> by <?php the_author_posts_link(); ?> <span class="comments-link"><span class="meta-sep">|</span> <?php comments_popup_link( __( 'Leave a comment', 'coraline' ), __( '1 Comment', 'coraline' ), __( '% Comments', 'coraline' ) ); ?></span> </div><!-- .entry-meta --> <?php if ( is_search() ) : // Display excerpts for search. ?> <div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'coraline' ) ); ?> <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'coraline' ), 'after' => '</div>' ) ); ?> </div><!-- .entry-content --> <?php endif; ?> <div class="entry-info"> <p class="comments-link"><?php comments_popup_link( __( '→ Leave a comment', 'coraline' ), __( '→ 1 Comment', 'coraline' ), __( '→ % Comments', 'coraline' ) ); ?></p> <?php if ( count( get_the_category() ) ) : ?> <p class="cat-links"> <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'coraline' ), 'entry-info-prep entry-info-prep-cat-links', get_the_category_list( ', ' ) ); ?> </p> <?php endif; ?> <?php $tags_list = get_the_tag_list( '', ', ' ); if ( $tags_list ): ?> <p class="tag-links"> <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'coraline' ), 'entry-info-prep entry-info-prep-tag-links', $tags_list ); ?> </p> <?php endif; ?> <?php edit_post_link( __( 'Edit', 'coraline' ), '<p class="edit-link">', '</p>' ); ?> </div><!-- .entry-info --> </div><!-- #post-## --> <?php comments_template( '', true ); ?> <?php endif; // This was the if statement that broke the loop into three parts based on categories. ?> <?php endwhile; // End the loop. Whew. ?> <?php /* Display navigation to next/previous pages when applicable */ ?> <?php if ( $wp_query->max_num_pages > 1 ) : ?> <div id="nav-below" class="navigation"> <div class="nav-next"><?php next_posts_link( __( 'Older posts <span class="meta-nav">→</span>', 'coraline' ) ); ?></div> <div class="nav-previous"><?php previous_posts_link( __( '<span class="meta-nav">←</span> Newer posts', 'coraline' ) ); ?></div> </div><!-- #nav-below --> <?php endif; ?>die style.css hab ich auch entsprechend geändert....
mein blog ist aber komplett unverändert....kanns sein dass ich irgendwo was konfiguriert habe, was die neuen befehle ignoriert oder blockiert?? gibts noch eine andere .php in der ein problem liegen könnte??! -
Ich komme mal wieder nicht weiter und brauche dringend eure hilfe. ich möchte bei meinem blog dailyimpulse.de gerne pro zeile jeweils zwei beiträge nebeneinander darstellen: kleines thumb, titel, exerpt, weiterlesen-pfeil. links der neuste beitrag, rechts der zweitneuste, dann in der nächsten zeile die nächsten beiden usw.
dazu gibts ja mehrere anleitungen, z.b.
http://neontrauma.de/wordpress/arti…-darstellen.php
http://www.texto.de/2-simple-moegl…-aufteilen-606/
aber die bringen mich einfach nicht weiter weil ich nicht weiß, wo genau ich die einbauen muss. ich finde einfach die zugehörigen stellen nicht...
daher hier mal die index.php meines themes (coraline):PHP
Alles anzeigen<?php /** * @package WordPress * @subpackage Coraline * @since Coraline 1.0 */ get_header(); ?> <div id="content-container"> <div id="content" role="main"> <?php get_template_part( 'loop', 'index' ); ?> </div><!-- #content --> </div><!-- #content-container --> <?php get_sidebar(); ?> <?php get_footer(); ?>und die loop:
PHP
Alles anzeigen<?php /** * @package WordPress * @subpackage Coraline * @since Coraline 1.0 */ ?> <?php /* Display navigation to next/previous pages when applicable */ ?> <?php if ( $wp_query->max_num_pages > 1 ) : ?> <div id="nav-above" class="navigation"> <div class="nav-next"><?php next_posts_link( __( 'Older posts <span class="meta-nav">→</span>', 'coraline' ) ); ?></div> <div class="nav-previous"><?php previous_posts_link( __( '<span class="meta-nav">←</span> Newer posts', 'coraline' ) ); ?></div> </div><!-- #nav-above --> <?php endif; ?> <?php /* If there are no posts to display, such as an empty archive page */ ?> <?php if ( ! have_posts() ) : ?> <div id="post-0" class="post error404 not-found"> <h1 class="entry-title"><?php _e( 'Not Found', 'coraline' ); ?></h1> <div class="entry-content"> <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'coraline' ); ?></p> <?php get_search_form(); ?> </div><!-- .entry-content --> </div><!-- #post-0 --> <?php endif; ?> <?php // Start the Loop. $options = get_option( 'coraline_theme_options' ); while ( have_posts() ) : the_post(); ?> <?php /* How to display posts in the Gallery category. */ ?> <?php if ( isset( $options['gallery_category'] ) && '0' != $options['gallery_category'] && in_category( $options['gallery_category'] ) ) : ?> <div id="post-<?php the_ID(); ?>" <?php post_class( 'category-gallery' ); ?>> <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'coraline' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <div class="entry-meta"> <?php coraline_posted_on(); ?> </div><!-- .entry-meta --> <div class="entry-content"> <?php if ( post_password_required() ) : ?> <?php the_content(); ?> <?php else : ?> <?php $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) ); if ( $images ) : $total_images = count( $images ); $image = array_shift( $images ); $image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' ); ?> <div class="gallery-thumb"> <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a> </div><!-- .gallery-thumb --> <p><em><?php printf( __( 'This gallery contains <a %1$s>%2$s photos</a>.', 'coraline' ), 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'coraline' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"', $total_images ); ?></em></p> <?php endif; ?> <?php the_excerpt(); ?> <?php endif; ?> </div><!-- .entry-content --> <div class="entry-info"> <span class="comments-link"><?php comments_popup_link( __( '→ Leave a comment', 'coraline' ), __( '→ 1 Comment', 'coraline' ), __( '→ % Comments', 'coraline' ) ); ?></span> <p><a href="<?php echo get_term_link( $options['gallery_category'], 'category' ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'coraline' ); ?>"><?php _e( 'More Galleries', 'coraline' ); ?></a></p> <p><?php edit_post_link( __( 'Edit', 'coraline' ), '', '' ); ?></p> </div><!-- .entry-info --> </div><!-- #post-## --> <?php /* How to display posts in the asides category */ ?> <?php elseif ( isset( $options['aside_category'] ) && '0' != $options['aside_category'] && in_category( $options['aside_category'] ) ) : ?> <div id="post-<?php the_ID(); ?>" <?php post_class( 'category-asides' ); ?>> <?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?> <div class="entry-summary aside"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content aside"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'coraline' ) ); ?> </div><!-- .entry-content --> <?php endif; ?> <div class="entry-info"> <p class="comments-link"><?php comments_popup_link( __( '→ Leave a comment', 'coraline' ), __( '→ 1 Comment', 'coraline' ), __( '→ % Comments', 'coraline' ) ); ?></p> <p><?php coraline_posted_on(); ?></p> <?php edit_post_link( __( 'Edit', 'coraline' ), '', '' ); ?> </div><!-- .entry-info --> </div><!-- #post-## --> <?php /* How to display all other posts. */ ?> <?php else : ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'coraline' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <div class="entry-meta"> <?php coraline_posted_on(); ?> by <?php the_author_posts_link(); ?> <span class="comments-link"><span class="meta-sep">|</span> <?php comments_popup_link( __( 'Leave a comment', 'coraline' ), __( '1 Comment', 'coraline' ), __( '% Comments', 'coraline' ) ); ?></span> </div><!-- .entry-meta --> <?php if ( is_search() ) : // Display excerpts for search. ?> <div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'coraline' ) ); ?> <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'coraline' ), 'after' => '</div>' ) ); ?> </div><!-- .entry-content --> <?php endif; ?> <div class="entry-info"> <p class="comments-link"><?php comments_popup_link( __( '→ Leave a comment', 'coraline' ), __( '→ 1 Comment', 'coraline' ), __( '→ % Comments', 'coraline' ) ); ?></p> <?php if ( count( get_the_category() ) ) : ?> <p class="cat-links"> <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'coraline' ), 'entry-info-prep entry-info-prep-cat-links', get_the_category_list( ', ' ) ); ?> </p> <?php endif; ?> <?php $tags_list = get_the_tag_list( '', ', ' ); if ( $tags_list ): ?> <p class="tag-links"> <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'coraline' ), 'entry-info-prep entry-info-prep-tag-links', $tags_list ); ?> </p> <?php endif; ?> <?php edit_post_link( __( 'Edit', 'coraline' ), '<p class="edit-link">', '</p>' ); ?> </div><!-- .entry-info --> </div><!-- #post-## --> <?php comments_template( '', true ); ?> <?php endif; // This was the if statement that broke the loop into three parts based on categories. ?> <?php endwhile; // End the loop. Whew. ?> <?php /* Display navigation to next/previous pages when applicable */ ?> <?php if ( $wp_query->max_num_pages > 1 ) : ?> <div id="nav-below" class="navigation"> <div class="nav-next"><?php next_posts_link( __( 'Older posts <span class="meta-nav">→</span>', 'coraline' ) ); ?></div> <div class="nav-previous"><?php previous_posts_link( __( '<span class="meta-nav">←</span> Newer posts', 'coraline' ) ); ?></div> </div><!-- #nav-below --> <?php endif; ?>Wenn man dann auf die einzelnen Kästchen draufklickt, soll man wieder zu der ausfühlichen beitragsversion kommen, sprich die single.php soll unverändert bleiben...
ich hoffe ihr könnt mir helfen, ich werd sonst echt verrückt :)
vielen dank schonmal... -