Hy!
ich habe leider auch ein kleines Wordpress Problem:
Bei einem meinem Pilates, Rueckenschule und Power Yoga Blog kann man auf der Hauptseite und auf den einzelnen Beitragesseiten unten immer die Tags sehen.
Dieses wuerde ich gerne auch bei meinem Medien-Blog haben.
Ich habe mal als Beispiel die Codes der single.php kopiert. Eventuell kann mir einer da weiterhelfen, welchen teil ich beim Design des Medien-Blogs einfuegen muss. Hab schon ein wenig rumprobiert, aber da kam dann immer ein Fehler. War wahrscheinlich zuviel.
Weiss auch gar nicht, welche Datei das dann ist fuer die Hauptseite, wo das unter jedem einzelnen Beitrag ist.
Hier mal die single.php vom ruecken-fit Blog:
CODE
<?php get_header() ?>
<div id="container">
<div id="content">
<?php the_post() ?>
<div id="nav-above" class="navigation">
<div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">&laquo;</span> %title' ) ?></div>
<div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">&raquo;</span>' ) ?></div>
</div>
<div id="post-<?php the_ID() ?>" class="<?php sandbox_post_class() ?>">
<h2 class="entry-title"><?php the_title() ?></h2>
<div class="entry-content">
<?php the_content() ?>
<?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'sandbox' ) . '&after=</div>') ?>
<script type="text/javascript"><!--
google_ad_client = "pub-0644826773865316";
/* 468x60, Erstellt 07.01.09 */
google_ad_slot = "8996514658";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="entry-meta">
<?php printf( __( 'This entry was written by %1$s, posted on <abbr class="published" title="%2$sT%3$s">%4$s at %5$s</abbr>, filed under %6$s%7$s. Bookmark the <a href="%8$s" title="Permalink to %9$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%10$s" title="Comments RSS to %9$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'sandbox' ),
'<span class="author vcard"><a class="url fn n" href="' . get_author_link( false, $authordata->ID, $authordata->user_nicename ) . '" title="' . sprintf( __( 'View all posts by %s', 'sandbox' ), $authordata->display_name ) . '">' . get_the_author() . '</a></span>',
get_the_time('Y-m-d'),
get_the_time('H:i:sO'),
the_date( '', '', '', false ),
get_the_time(),
get_the_category_list(', '),
get_the_tag_list( __( ' and tagged ', 'sandbox' ), ', ', '' ),
get_permalink(),
the_title_attribute('echo=0'),
comments_rss() ) ?>
<?php if ( ('open' == $post->comment_status) && ('open' == $post->ping_status) ) : // Comments and trackbacks open ?>
<?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'sandbox' ), get_trackback_url() ) ?>
<?php elseif ( !('open' == $post->comment_status) && ('open' == $post->ping_status) ) : // Only trackbacks open ?>
<?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'sandbox' ), get_trackback_url() ) ?>
<?php elseif ( ('open' == $post->comment_status) && !('open' == $post->ping_status) ) : // Only comments open ?>
<?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'sandbox' ) ?>
<?php elseif ( !('open' == $post->comment_status) && !('open' == $post->ping_status) ) : // Comments and trackbacks closed ?>
<?php _e( 'Both comments and trackbacks are currently closed.', 'sandbox' ) ?>
<?php endif; ?>
<?php edit_post_link( __( 'Edit', 'sandbox' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ) ?>
</div>
</div><!-- .post -->
<div id="nav-below" class="navigation">
<div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">&laquo;</span> %title' ) ?></div>
<div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">&raquo;</span>' ) ?></div>
</div>
<?php comments_template() ?>
</div><!-- #content -->
</div><!-- #container -->
<?php get_sidebar() ?>
<?php get_footer() ?>
Und hier der vom Medien Blog:
CODE
<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="navigation">
<div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
<div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
<div style="clear:both;"></div>
</div>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="title">
<h2 class="posttitle">
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permalink to'); ?> <?php the_title(); ?>"><?php the_title(); ?></a>
</h2>
<p class="postmeta">Posted on <?php the_time('Y') ?> under <?php the_category(', ') ?> <?php edit_post_link(__('Edit'), ' · ', ''); ?>
</p>
</div>
<div class="postentry">
<?php the_content(__('Read the rest of this entry &raquo;')); ?><div style="clear:both;"></div>
<?php wp_link_pages(); ?>
</div>
</div>
<div class="post">
<?php comments_template(); ?>
</div>
<?php endwhile; else : ?>
<div class="post">
<h2><?php _e('Error 404 - Not found'); ?></h2>
</div>
<?php endif; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Vielen Dank schonmal fuer die Hilfe.
Gruss
Tobias Wilhelm
ich habe leider auch ein kleines Wordpress Problem:
Bei einem meinem Pilates, Rueckenschule und Power Yoga Blog kann man auf der Hauptseite und auf den einzelnen Beitragesseiten unten immer die Tags sehen.
Dieses wuerde ich gerne auch bei meinem Medien-Blog haben.
Ich habe mal als Beispiel die Codes der single.php kopiert. Eventuell kann mir einer da weiterhelfen, welchen teil ich beim Design des Medien-Blogs einfuegen muss. Hab schon ein wenig rumprobiert, aber da kam dann immer ein Fehler. War wahrscheinlich zuviel.
Weiss auch gar nicht, welche Datei das dann ist fuer die Hauptseite, wo das unter jedem einzelnen Beitrag ist.
Hier mal die single.php vom ruecken-fit Blog:
CODE
<?php get_header() ?>
<div id="container">
<div id="content">
<?php the_post() ?>
<div id="nav-above" class="navigation">
<div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">&laquo;</span> %title' ) ?></div>
<div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">&raquo;</span>' ) ?></div>
</div>
<div id="post-<?php the_ID() ?>" class="<?php sandbox_post_class() ?>">
<h2 class="entry-title"><?php the_title() ?></h2>
<div class="entry-content">
<?php the_content() ?>
<?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'sandbox' ) . '&after=</div>') ?>
<script type="text/javascript"><!--
google_ad_client = "pub-0644826773865316";
/* 468x60, Erstellt 07.01.09 */
google_ad_slot = "8996514658";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="entry-meta">
<?php printf( __( 'This entry was written by %1$s, posted on <abbr class="published" title="%2$sT%3$s">%4$s at %5$s</abbr>, filed under %6$s%7$s. Bookmark the <a href="%8$s" title="Permalink to %9$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%10$s" title="Comments RSS to %9$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'sandbox' ),
'<span class="author vcard"><a class="url fn n" href="' . get_author_link( false, $authordata->ID, $authordata->user_nicename ) . '" title="' . sprintf( __( 'View all posts by %s', 'sandbox' ), $authordata->display_name ) . '">' . get_the_author() . '</a></span>',
get_the_time('Y-m-d'),
get_the_time('H:i:sO'),
the_date( '', '', '', false ),
get_the_time(),
get_the_category_list(', '),
get_the_tag_list( __( ' and tagged ', 'sandbox' ), ', ', '' ),
get_permalink(),
the_title_attribute('echo=0'),
comments_rss() ) ?>
<?php if ( ('open' == $post->comment_status) && ('open' == $post->ping_status) ) : // Comments and trackbacks open ?>
<?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'sandbox' ), get_trackback_url() ) ?>
<?php elseif ( !('open' == $post->comment_status) && ('open' == $post->ping_status) ) : // Only trackbacks open ?>
<?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'sandbox' ), get_trackback_url() ) ?>
<?php elseif ( ('open' == $post->comment_status) && !('open' == $post->ping_status) ) : // Only comments open ?>
<?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'sandbox' ) ?>
<?php elseif ( !('open' == $post->comment_status) && !('open' == $post->ping_status) ) : // Comments and trackbacks closed ?>
<?php _e( 'Both comments and trackbacks are currently closed.', 'sandbox' ) ?>
<?php endif; ?>
<?php edit_post_link( __( 'Edit', 'sandbox' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ) ?>
</div>
</div><!-- .post -->
<div id="nav-below" class="navigation">
<div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">&laquo;</span> %title' ) ?></div>
<div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">&raquo;</span>' ) ?></div>
</div>
<?php comments_template() ?>
</div><!-- #content -->
</div><!-- #container -->
<?php get_sidebar() ?>
<?php get_footer() ?>
Und hier der vom Medien Blog:
CODE
<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="navigation">
<div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
<div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
<div style="clear:both;"></div>
</div>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="title">
<h2 class="posttitle">
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permalink to'); ?> <?php the_title(); ?>"><?php the_title(); ?></a>
</h2>
<p class="postmeta">Posted on <?php the_time('Y') ?> under <?php the_category(', ') ?> <?php edit_post_link(__('Edit'), ' · ', ''); ?>
</p>
</div>
<div class="postentry">
<?php the_content(__('Read the rest of this entry &raquo;')); ?><div style="clear:both;"></div>
<?php wp_link_pages(); ?>
</div>
</div>
<div class="post">
<?php comments_template(); ?>
</div>
<?php endwhile; else : ?>
<div class="post">
<h2><?php _e('Error 404 - Not found'); ?></h2>
</div>
<?php endif; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Vielen Dank schonmal fuer die Hilfe.
Gruss
Tobias Wilhelm