Danke MarX
Jetzt hat es funktioniert :-D ..Bis zum nächsten Update von Wordpress und K2 *grins
Wie kann ich dir bloss 10 Sterne verleihen für deine schnelle Hilfe ? :-D
Auf jedenfall DANKE, DANKE, DANKE
Um schreiben oder kommentieren zu können, benötigen Sie ein Benutzerkonto.
Sie haben schon ein Benutzerkonto? Melden Sie sich hier an.
Jetzt anmeldenHier können Sie ein neues Benutzerkonto erstellen.
Neues Benutzerkonto erstellenDanke MarX
Jetzt hat es funktioniert :-D ..Bis zum nächsten Update von Wordpress und K2 *grins
Wie kann ich dir bloss 10 Sterne verleihen für deine schnelle Hilfe ? :-D
Auf jedenfall DANKE, DANKE, DANKE
Und? Was passiert wenn du das raus nimmst?
Warning: printf() [[COLOR=#0000ff]function.printf[/COLOR]]: Too few arguments in /www/htdocs/.../Weblog4/wp-content/themes/k2/theloop.php on line 126
Muss man nicht. Nur bei Themes wie K2, da diese jede Menge Funktionalität mitbringen - und da kann sich durchaus was ändern, wenn WP Funktionen einführt oder ändert. Je komplexer das Theme desto wahrscheinlicher ist das...
PHP<div class="entry-meta"> <?php printf( __('<span class="meta-start">Published</span> %1$s %2$s %3$s<span class="meta-end">.</span>','k2_domain'), '[COLOR=red]<div class="entry-author">' .[/COLOR] [COLOR=red]sprintf( __('<span class="meta-prep">by</span> %s','k2_domain'),[/COLOR] [COLOR=red]'<address class="vcard author"><a href="' . get_author_posts_url(get_the_author_ID()) .'" class="url fn" title="'. sprintf(__('View all posts by %s','k2_domain'), attribute_escape(get_the_author())) .'">' . get_the_author() . '</a></address>' ) . '</div>[/COLOR]',
Das sollte alles zum Autor sein, wenn ich das richtig überblicke...
Ja das ist alles was ich jedenfalls über author finden kann
Kein Author anzeigen - Neue Frage.. Hilfe
Warum muss man jedesmal wenn wordpress ein update bringt gleich alle themes mitändern. Das schlimme ist das bei K2 dann nie die codes funktionieren wie vorher. Das bedeutet ich brauch mal wieder Hilfe und zwar bei code von theloop:
[code=php]<div class="entry-meta">
<?php
printf( __('<span class="meta-start">Published</span> %1$s %2$s %3$s<span class="meta-end">.</span>','k2_domain'),
'<div class="entry-author">' .
sprintf( __('<span class="meta-prep">by</span> %s','k2_domain'),
'<address class="vcard author"><a href="' . get_author_posts_url(get_the_author_ID()) .'" class="url fn" title="'. sprintf(__('View all posts by %s','k2_domain'), attribute_escape(get_the_author())) .'">' . get_the_author() . '</a></address>' ) . '</div>',[code=php]
Wenn jemand mit Helfen kann und das ganze theloop braucht, kann ich dann posten.
Danke
Erledigt
Okay jetzt habe ich gerade den Fehler gefunden :-) Bei user war das "Use the visual editor when writing" nicht angeklickt.
Ich habe zwei Weblogs, in beiden sind die Versionen 2.5.1 installiert. Aber bei den einen Blog habe ich in der Write Post /Page die option neben Add Media für Visual und Html und bei den anderen Blog nicht. Ich würde das aber gern genauso haben und kann einfach nichts finden woran das liegen könnte :-( Kann jemand mir sagen was ich einstellen muss, damit ich auch in zweiten Blog die Option Visual und Html erhalte ?
Danke
p.s. es sind auch alle plugins installiert und aktiviert wie in ersten blog.
Danke hat alles funktioniert :-)
Das hat schon funktioniert. Danke :-) Aber ich würde die links darunter auch gern kleiner haben. Gibt es da auch noch ein Code, wenn ich den nämlich über ein a tag den style zufüge passiert mit den Überschriften von den post dasselbe und sie passen sich dann dieser grösse ebenfalls an.
Eine passende Regel gibts anscheinend noch nicht, also einfach neu einfügen (z.B. am Ende der style.css)[/quote]
Probleme mit style css
Roef Ragas
Sidebar.php
<hr />
<div id="sidebar-1" class="secondary">
<?php /* Widgets/SBM Check */ if ( !(function_exists('dynamic_sidebar') and dynamic_sidebar(1)) ) { ?>
<div id="search"><h4><?php _e('Search','k2_domain'); ?></h4>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</div>
<?php /* Menu for subpages of current page */
global $notfound;
if (is_page() and ($notfound != '1')) {
$current_page = $post->ID;
while($current_page) {
$page_query = $wpdb->get_row("SELECT ID, post_title, post_status, post_parent FROM $wpdb->posts WHERE ID = '$current_page'");
$current_page = $page_query->post_parent;
}
$parent_id = $page_query->ID;
$parent_title = $page_query->post_title;
$page_menu = wp_list_pages('echo=0&sort_column=menu_order&title_li=&child_of='. $parent_id);
if ($page_menu) {
?>
<div class="sb-pagemenu">
<h4><?php echo apply_filters('the_title', $parent_title); ?> <?php _e('Subpages','k2_domain'); ?></h4>
<ul>
<?php echo $page_menu; ?>
</ul>
<?php if ($parent_id != $post->ID) { ?>
<a href="<?php echo get_permalink($parent_id); ?>"><?php printf(__('Back to %s','k2_domain'), apply_filters('the_title',$parent_title) ); ?></a>
<?php } ?>
</div>
<?php } } ?>
<?php if (is_attachment()) { ?>
<div class="sb-pagemenu">
<a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php printf(__('Back to \'%s\'','k2_domain'), get_the_title($post->post_parent) ) ?></a>
</div>
<?php } ?>
<?php if (!is_home() and !is_page() and !is_single() or is_paged()) { ?>
<div class="sb-about">
<h4><?php _e('About','k2_domain'); ?></h4>
<?php /* Category Archive */ if (is_category()) { ?>
<p><?php printf(__('You are currently browsing the %1$s weblog archives for the %2$s category.','k2_domain'), '<a href="' . get_settings('siteurl') .'">' . get_bloginfo('name') . '</a>', single_cat_title('', false) ) ?></p>
<?php /* Day Archive */ } elseif (is_day()) { ?>
<p><?php printf(__('You are currently browsing the %1$s weblog archives for the day %2$s.','k2_domain'), '<a href="' . get_settings('siteurl') .'">' . get_bloginfo('name') . '</a>', get_the_time(__('l, F jS, Y','k2_domain'))) ?></p>
<?php /* Monthly Archive */ } elseif (is_month()) { ?>
<p><?php printf(__('You are currently browsing the %1$s weblog archives for the month %2$s.','k2_domain'), '<a href="'.get_settings('siteurl').'">'.get_bloginfo('name').'</a>', get_the_time(__('F, Y','k2_domain'))) ?></p>
<?php /* Yearly Archive */ } elseif (is_year()) { ?>
<p><?php printf(__('You are currently browsing the %1$s weblog archives for the year %2$s.','k2_domain'), '<a href="'.get_settings('siteurl').'">'.get_bloginfo('name').'</a>', get_the_time('Y')) ?></p>
<?php /* Search */ } elseif (is_search()) { ?>
<p><?php printf(__('You have searched the %1$s weblog archives for \'<strong>%2$s</strong>\'.','k2_domain'),'<a href="'.get_settings('siteurl').'">'.get_bloginfo('name').'</a>', wp_specialchars($s)) ?></p>
<?php /* Author Archive */ } elseif (is_author()) { ?>
<p><?php printf(__('Archive for <strong>%s</strong>.','k2_domain'), get_the_author()) ?></p>
<p><?php the_author_description(); ?></p>
<?php } elseif (function_exists('is_tag') and is_tag()) { ?>
<p><?php printf(__('You are currently browsing the %1$s weblog archives for \'%2$s\' tag.','k2_domain'), '<a href="'.get_settings('siteurl').'">'.get_bloginfo('name').'</a>', get_query_var('tag') ) ?></p>
<?php /* Paged Archive */ } elseif (is_paged()) { ?>
<p><?php printf(__('You are currently browsing the %s weblog archives.','k2_domain'), '<a href="'.get_settings('siteurl').'">'.get_bloginfo('name').'</a>') ?></p>
<?php } ?>
</div>
<?php } ?>
<?php /* Brian's Latest Comments */ if ((function_exists('blc_latest_comments')) and is_home()) { ?>
<div class="sb-comments sb-comments-blc">
<h4><?php _e('Comments','k2_domain'); ?></h4>
<a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('RSS Feed for all Comments','k2_domain'); ?>" class="feedlink"><span><?php _e('RSS','k2_domain'); ?></span></a>
<ul>
<?php blc_latest_comments('5','3','false'); ?>
</ul>
</div>
<?php } ?>
<?php /* Latest Entries */ if ( (is_home()) or (is_search() or (is_404()) or (defined('K2_NOT_FOUND'))) or (function_exists('is_tag') and is_tag()) or ( (is_archive()) and (!is_author()) ) ) { ?>
<div class="sb-latest">
<h4><?php _e('Latest','k2_domain'); ?></h4>
<a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('RSS Feed for Blog Entries','k2_domain'); ?>" class="feedlink"><span><?php _e('RSS','k2_domain'); ?></span></a>
<ul>
<?php wp_get_archives('type=postbypost&limit=10'); ?>
</ul>
</div>
<?php } ?>
<?php /* Related Posts Plugin */ if ( (function_exists('related_posts')) and is_single() and !defined('K2_NOT_FOUND') ) { ?>
<div class="sb-related">
<h4><?php _e('Related Entries','k2_domain'); ?></h4>
<ul>
<?php related_posts(); ?>
</ul>
</div>
<?php } ?>
<?php /* FlickrRSS Plugin */ if ((function_exists('get_flickrRSS')) and is_home() and !(is_paged())) { ?>
<div class="sb-flickr">
<h4><?php _e('Flickr','k2_domain'); ?></h4>
<a href="http://flickr.com/services/feeds/photos_public.gne?id=<?php echo get_option('flickrRSS_flickrid'); ?>&format=rss_200" title="<?php _e('RSS Feed for flickr','k2_domain'); ?>" class="feedlink"><span><?php _e('RSS','k2_domain'); ?></span></a>
<div>
<?php get_flickrRSS(); ?>
</div>
</div>
<?php } ?>
<?php /* if ((function_exists('feedlist')) and is_home() and !(is_paged()) ) { ?>
<div class="sb-feedlist"><h4><?php _e('Feedlist','k2_domain'); ?></h4>
<ul>
<?php feedList(array("rss_feed_url"=>"",
"num_items"=>10,
"show_description"=>false,
"random"=>true,
"sort"=>"asc","new_window"=>true));
?>
</ul>
</div>
<?php } */ ?>
<?php /* Links */ if ( (is_home()) and !(is_page()) and !(is_single()) and !(is_search()) and !(is_archive()) and !(is_author()) and !(is_category()) and !(is_paged()) ) { $links_list_exist = @$wpdb->get_var("SELECT link_id FROM $wpdb->links LIMIT 1"); if($links_list_exist) { ?>
<div class="sb-links">
<ul>
<?php wp_list_bookmarks('title_before=<h4>&title_after=</h4>'); ?>
</ul>
</div>
<?php } } ?>
<?php /* Archives */ if ( is_archive() or is_search() or is_paged() or is_category() or (function_exists('is_tag') and is_tag()) or defined('K2_NOT_FOUND') ) { ?>
<div class="sb-months">
<h4><?php _e('Archives','k2_domain'); ?></h4>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</div>
<div class="sb-categories">
<h4><?php _e('Categories','k2_domain'); ?></h4>
<ul>
<?php wp_list_categories('title_li=&show_count=1&hierarchical=0'); ?>
</ul>
</div>
<?php } ?>
<?php } /* End Widgets/SBM check */ ?>
</div> <!-- #sidebar-1 -->
<?php if ( function_exists('dynamic_sidebar') ): for ( $i = 2; $i <= K2_SIDEBARS; $i++ ): ?>
<hr />
<div id="sidebar-<?php echo $i; ?>" class="secondary">
<?php dynamic_sidebar($i); ?>
</div> <!-- #sidebar-<?php echo $i; ?> -->
<?php endfor; endif; ?>
<div class="clear"></div>
Alles anzeigen
Hallo, ich brauche hilfe. Ich hab ein update von meiner Style version gemacht, allerdings will ich bei der sidebar das die schrift von links kleiner werden, wenn ich die jedoch in css auf 8pt setze, dann sind auch alle Überschriften in Wordpress in 8pt. Kann mal jemand schauen ob er vielleicht etwas entdeckt wie ich es lösen könnte? Danke
/*
True Blue 1.4
[URL="http://stevelam.org/projects/trueblue/"]True Blue at stevelam.org[/URL]
Core Elements
*/
/* Typography */
#page h1, #header .description, #page h2, #page h3, #page h4, #page h5 {
font-family: Georgia, 'Times New Roman', serif;
}
#header ul.menu {
font-size: 1.2em;
}
#page #primary .entry-content,
body.single #primary .k2-asides .entry-content {
border:1px solid #C0C0C0; font-size: 8pt;
color: #444444;
line-height: 1.6em;
}
.comments #commentlist .comment-content {
border:1px solid #E9E9E9; line-height: 1.6em; font-size:8pt; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px
}
#primary .entry-content h4 {
font-size: 1.1em; background-color:#E9E9E9
}
#page .secondary {
font-size: 1.2em;
}
#page .secondary .sb-asides p {
line-height: 1.6em;
}
#footer small, small.entry-meta {
font-size: 1.1em;
}
/* Layout */
body {
margin: 10px 0;
background: #657585;
}
#page {
border: none;
padding: 0;
}
/* Header */
#header {
background: transparent url('../images/header_bg.jpg') no-repeat top;
background-position: 15px 15px !important;
position: relative;
}
#header h1 {
position: absolute;
padding: 0;
margin: 0;
top: 100px;
left: 50px;
text-shadow: 2px 2px 5px black;
z-index: 50;
}
#header .description {
position: absolute;
padding: 0;
margin: 0;
top: 140px;
left: 50px;
font-size: 1.4em;
font-style: italic;
text-shadow: 2px 2px 2px black;
z-index: 50;
}
/* Header Menu */
ul.menu {
top: 0;
left: 0;
margin: 0;
position: absolute; font-size:8pt; padding-left:40px; padding-right:40px; padding-top:15px; padding-bottom:0
}
ul.menu li {
float: left;
display: block;
margin: 0 2px;
font-size:8pt; padding-left:10px; padding-right:0; padding-top:0; padding-bottom:0
}
ul.menu li a {
float: left;
display: block;
font-weight: normal; font-size:8pt; margin-left:0; margin-right:0; margin-top:0; margin-bottom:10px; padding-left:0; padding-right:10px; padding-top:10px; padding-bottom:5px
}
ul.menu li:hover {
background: url('../images/menu-hover-left.png') no-repeat bottom left; font-size:8pt
}
ul.menu li a:hover, ul.menu li:hover > a {
color: #FFFFFF !important;
background: url('../images/menu-hover-right.png') no-repeat bottom right;
padding-top: 20px;
margin-bottom: 0; font-size:8pt
}
ul.menu li.current_page_item {
background: url('../images/menu-selected-left.png') no-repeat bottom left;
}
ul.menu li.current_page_item a, ul.menu li.current_page_item a:hover {
color: #333333 !important;
background: url('../images/menu-selected-right.png') no-repeat bottom right;
font-weight: bold;
padding-top: 20px;
margin-bottom: 0; font-size:8pt
}
.admintab {
position: relative;
}
/* Primary */
#page h2 {
margin-top: 30px;
}
#page blockquote {
background-color: transparent;
}
#page .k2-asides blockquote {
margin: 1em 0;
padding: 0 0 0 20px;
background: url('../images/quote-small.gif') left top no-repeat;
}
/* Metadata */
.chronodata
{
color: #777;
background: url('../icons/calendar.gif') left center no-repeat;
}
.commentslink {
background: url('../icons/comments.gif') left center no-repeat;
}
/* Sidebar */
div.secondary div {
position: relative;
}
div.secondary #searchreset {
width: 16px;
height: 16px;
background: url('../icons/delete.gif') center center;
}
.sb-pagemenu li:before,
.sb-latest li:before,
.sb-categories li:before,
.sb-months li:before,
.sb-links ul li ul li:before {
content: "\00BB \0020";
}
.sb-pagemenu .current_page_item a {
font-weight: bold;
}
.sb-pagemenu ul {
margin-bottom: 1em; font-size:1em
}
/* Footer */
#footer {
padding: 0;
margin: 0 auto;
color: #666;
display: block;
}
#footer a {
color: #333;
font-weight: bold;
border: none;
text-decoration: none;
}
#footer a:hover {
color: #fff;
text-decoration: underline;
}
/* Comments */
.comments #commentlist {
margin: 20px 0;
padding: 0; font-size:8pt
}
.comments #commentlist li.bypostauthor {
background: #e4e9ef;
border: 1px solid #d2d7dd;
border-top: 4px solid #d2d7dd;
height: 100%;
}
.comments #commentlist li a img.gravatar {
float: right;
border: 1px solid #999;
padding: 3px;
background: #fff;
}
.comments #commentlist li a:hover img.gravatar {
border: 3px solid #27d;
padding: 1px;
}
.comments #commentlist .comment-meta {
color: #777;
background: url('../icons/calendar.gif') left center no-repeat;
}
.comments #pinglist {
background: #e4e9ef;
border: 1px solid #d2d7dd;
border-top: 4px solid #d2d7dd;
margin-bottom: 20px;
}
.comments #pinglist li {
margin-left: 52px;
}
.comments #pinglist li span.favatar img {
margin-left: -42px;
max-width: 32px;
}
/* Paged Navigation */
div.navigation {
width: 510px;
margin: 0 auto;
padding: 8px 0px 12px;
background: url('../images/navigation_bg.png') no-repeat bottom;
position: relative;
}
div.navigation span {
display: none;
}
div.navigation a {
color: #ccc;
}
div.navigation a:hover {
color: #fff;
}
div.navigation .left {
margin-left: 16px;
padding-left: 24px;
background: url('../icons/book_previous.png') left center no-repeat;
width: auto;
}
div.navigation .right {
margin-right: 16px;
padding-right: 24px;
background: url('../icons/book_next.png') right center no-repeat;
width: auto;
}
div.comments div.navigation {
display: none;
}
/* Rolling Archives */
#primary #rollingarchives {
padding: 5px 20px;
background: url('../images/navigation_bg.png') no-repeat bottom;
height: 24px;
width: 470px;
margin: 0 auto;
}
#primary .firstpage #pagetrackwrap {
visibility: visible;
}
#primary #rollingarchives,
#rollingarchives #rollnotices {
border: none;
}
#rollingarchives #rollnavigation {
position: relative;
}
#rollingarchives #rollnavigation a {
color: #ccc;
}
#rollingarchives #rollprevious,
#rollingarchives #rollnext,
#rollingarchives #rollpages,
#rollingarchives #rolldates,
#rollingarchives #rollload {
color: #ccc;
}
#rollingarchives #rollload {
background: url('../images/spinner.gif') no-repeat center center;
right: 70px;
}
#rollingarchives #rollpages {
left: 70px;
width: 100px;
text-align: center;
}
#rollingarchives #rollprevious {
padding-left: 24px;
background: url('../icons/book_previous.png') left center no-repeat;
}
#rollingarchives #rollnext {
padding-right: 24px;
background: url('../icons/book_next.png') right center no-repeat;
}
#rollingarchives :hover#rollnext, #rollingarchives :hover#rollprevious {
color: #fff;
background-color: transparent;
}
#rollingarchives #rollnext span,
#rollingarchives #rollprevious span {
display: none;
}
#rollingarchives #pagetrackwrap {
left: 180px;
width: 180px;
height: 15px;
top: 2px;
background: url('../images/slider_bg.gif') right center no-repeat;
}
#rollingarchives #pagetrack {
height: 15px;
background: url('../images/slider_bg.gif') left center no-repeat;
}
#rollingarchives #pagehandle,
#rollingarchives #trimmerhandle {
cursor: pointer;
height: 15px;
width: 15px;
background: url('../images/slider-handle.png') center center;
}
#rollingarchives #rollhover {
left: -43px;
top: 15px;
}
/* Miscellaneous */
a.more-link {
display: block;
margin: 1em 15px 0px 0px;
padding: 2px 0px 2px 20px ;
background: url('../icons/page_white_go.gif') left center no-repeat;
}
.alert {
background: #FFF6BF url('../icons/exclamation.gif') 8px 8px no-repeat;
border: 1px solid #FFD324;
border-top: 4px solid #FFD324;
text-align: left;
margin: 10px auto;
padding: 5px 20px 5px 32px;
}
.noteworthy {
background: url('../icons/star.gif') no-repeat right center;
}
.download {
background: url('../icons/disk.gif') left top no-repeat;
text-align: left;
padding-left: 24px;
}
/* FlickrRSS */
.sb-flickr div a img {
border: 1px solid #999;
}
.sb-flickr div a:hover img {
border: 3px solid #27d;
padding: 1px;
}
Alles anzeigen
Ha es funktioniert! Komisch jetzt ist auch die Navi vollkommen richtig da. Hab das css von rollingarchives noch mal neu geladen :-)
DANKE für deine Hilfe ... Gibt 9 Sterne von mir ;-)
Ähm das mit den löschen war keine gute Idee, gab ein Error in theloop.php Soll ich dir vielleicht mal den link schicken wo ich das theme her habe? Das hat noch soviele module mit drin und verzeichnisse, vielleicht liegt da irgendwo das problem?
Das mit der navi ist auch total komisch. Sie wird angezeigt aber kann nicht angeklickt werden. Merkwürdigerweise funktioniert sie, wenn ich das plugin disable setze, allerdings ist sie dann an unteren ende von Weblog und nicht oben wo sie sein sollte.
Ja ich habe gestern schon so 2 stunden damit verbracht :-) Soll ich das was du markiert hast einfach rauslöschen?
Ach übrigens habe ich da noch gleich noch ein weiteres problem mit der navigation :-) Wo gehört diese Frage hin?
Guck dir die beiden Dateien mal an.
Also das ist der rollingarchives.php code:
<?php
// Get core WP functions if needed
if (isset($_GET['k2dynamic'])) {
require (dirname(__FILE__).'/../../../wp-blog-header.php');
$query = k2_parse_query($_GET);
query_posts($query);
unset($_GET['k2dynamic']);
}
// Load Rolling Archives?
if ( get_option('k2rollingarchives') == 1 ) {
// Parse the query
if ( is_array($wp_query->query) ) {
$rolling_query = http_build_query($wp_query->query);
} else {
$rolling_query = $wp_query->query;
}
// Get list of page dates
if ( !is_page() and !is_single() ) {
$page_dates = get_rolling_page_dates($wp_query);
}
// Get the current page
$rolling_page = get_query_var('paged');
if ( empty($rolling_page) ) {
$rolling_page = 1;
}
// Debugging
if ( isset($_GET['k2debug']) ) {
$rolling_query .= '&k2debug=1';
}
?>
<div id="rollingarchives" style="visibility: hidden;">
<div id="texttrimmer">
<div id="trimmertrackwrap"><div id="trimmertrack"><div id="trimmerhandle"></div></div></div>
<div id="trimmerless"><span><?php _e('Less','k2_domain'); ?></span></div>
<div id="trimmermore"><span><?php _e('More','k2_domain'); ?></span></div>
</div> <!-- #texttrimmer -->
<div id="rollnavigation">
<div id="pagetrackwrap"><div id="pagetrack"><div id="pagehandle"><div id="rollhover"><div id="rolldates"></div></div></div></div></div>
<div id="rollpages"></div>
<div id="rollprevious" title="<?php _e('Older','k2_domain'); ?>">
<span>«</span> <?php _e('Older','k2_domain'); ?>
</div>
<div id="rollhome" title="<?php _e('Home','k2_domain'); ?>">
<span><?php _e('Home','k2_domain'); ?></span>
</div>
<div id="rollload" title="<?php _e('Loading','k2_domain'); ?>">
<span><?php _e('Loading','k2_domain'); ?></span>
</div>
<div id="rollnext" title="<?php _e('Newer','k2_domain'); ?>">
<?php _e('Newer','k2_domain'); ?> <span>»</span>
</div>
</div> <!-- #rollnavigation -->
<div id="rollnotices"></div>
</div> <!-- #rollingarchives -->
<script type="text/javascript">
// <![CDATA[
K2.RollingArchives.setRollingState(<?php echo $rolling_page; ?>, <?php echo $wp_query->max_num_pages; ?>, "<?php echo $rolling_query; ?>", <?php output_javascript_array($page_dates); ?>);
// ]]>
</script>
<?php } ?>
<div id="rollingcontent" class="hfeed">
<?php include (TEMPLATEPATH . '/theloop.php'); ?>
</div><!-- #rollingcontent .hfeed -->
Alles anzeigen
Und das von theloop.php
<?php
// This is the loop, which fetches entries from your database.
// It is a very delicate piece of machinery. Be gentle!
// Get core WP functions when loaded dynamically
if (isset($_GET['k2dynamic'])) {
require (dirname(__FILE__).'/../../../wp-blog-header.php');
if ($_GET['k2dynamic'] != 'init') {
$query = k2_parse_query($_GET);
query_posts($query);
}
// Debugging
if ( isset($_GET['k2debug']) ) {
echo '<div class="alert">';
echo '<b>Query:</b><br />'; var_dump($wp_query->query); echo '<br />';
echo '<b>Request:</b><br />'; var_dump($wp_query->request); echo '<br />';
echo '</div>';
}
?>
<div id="dynamictype" class="<?php k2_body_class(); ?>">
<?php }
// Get the asides category
$k2asidescategory = get_option('k2asidescategory');
// Get date & time formats
$dateformat = get_option('date_format');
$timeformat = get_option('time_format');
?>
<?php /* Headlines for archives */ if ((!is_single() and !is_home()) or is_paged()) { ?>
<div class="page-head"><h2>
<?php // Figure out what kind of page is being shown
if (is_category()) {
if (get_query_var('cat') != $k2asidescategory) {
printf(__('Archive for the \'%s\' Category','k2_domain'), single_cat_title('', false));
} else {
echo single_cat_title();
}
} elseif (is_day()) {
printf(__('Archive for %s','k2_domain'), get_the_time(__('F jS, Y','k2_domain')));
} elseif (is_month()) {
printf(__('Archive for %s','k2_domain'), get_the_time(__('F, Y','k2_domain')));
} elseif (is_year()) {
printf(__('Archive for %s','k2_domain'), get_the_time(__('Y','k2_domain')));
} elseif (is_search()) {
printf(__('Search Results for \'%s\'','k2_domain'), attribute_escape(stripslashes(get_query_var('s'))));
} elseif (function_exists('is_tag') and is_tag()) {
printf(__('Tag Archive for \'%s\'','k2_domain'), get_query_var('tag') );
} elseif (is_author()) {
printf(__('Author Archive for %s','k2_domain'), get_author_name(get_query_var('author')));
} elseif (is_paged() and (get_query_var('paged') > 1)) {
_e('Archive','k2_domain');
}
if ( get_query_var('paged') > 1 ) {
printf(__(' <span class="archivepages">Page %1$s of %2$s</span>','k2_domain'), get_query_var('paged'), $wp_query->max_num_pages);
}
?>
</h2></div>
<?php } ?>
<?php if ((get_option('k2rollingarchives') == 0) and !is_single() and is_paged()) include (TEMPLATEPATH . '/navigation.php'); ?>
<?php
/* Check if there are posts */
if ( have_posts() ) {
/* It saves time to only perform the following if there are posts to show */
/* Count if there are 2+ users */
$count_users = $wpdb->get_var("SELECT COUNT(1) FROM $wpdb->usermeta WHERE meta_key = '" . $table_prefix . "user_level' AND meta_value > 1 LIMIT 2");
/* If there are 2+ users, this is a multiple-user blog */
$multiple_users = ($count_users > 1);
/* Post index for semantic classes */
$post_index = 1;
?>
<?php /* Start the loop */ while ( have_posts() ) { the_post(); ?>
<?php /* Permalink nav has to be inside loop */ if (is_single()) include (TEMPLATEPATH . '/navigation.php'); ?>
<div id="post-<?php the_ID(); ?>" class="<?php k2_post_class($post_index++, in_category($k2asidescategory)); ?>">
<div class="entry-head">
<h3 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title='<?php printf( __('Permanent Link to "%s"','k2_domain'), wp_specialchars(strip_tags(the_title('', '', false)),1) ); ?>'><?php the_title(); ?></a></h3>
<?php /* Support for Noteworthy plugin */ if (function_exists('nw_noteworthyLink')) { nw_noteworthyLink(get_the_ID()); } ?>
<div class="entry-meta">
<span class="chronodata">
<?php /* Date & Author */
printf( __('Published %1$s %2$s','k2_domain'),
( $multiple_users ? sprintf(__('by %s','k2_domain'), '<address class="vcard author"><a href="' . get_author_posts_url(get_the_author_ID()) .'" class="url fn" title="'. sprintf(__('View all posts by %s','k2_domain'), attribute_escape(get_the_author())) .'">' . get_the_author() . '</a></address>') : ('') ),
'<abbr class="published" title="'. get_the_time('Y-m-d\TH:i:sO') . '">' .
( function_exists('time_since') ? sprintf(__('%s ago','k2_domain'), time_since(abs(strtotime($post->post_date_gmt . " GMT")), time())) : sprintf(__('at %s','k2-domain'), get_the_time($dateformat)) )
. '</abbr>'
);
?>
</span>
<span class="entry-category">
<?php /* Categories */ printf(__('in %s.','k2_domain'), k2_nice_category(', ', __(' and ','k2_domain')) ); ?>
</span>
<?php /* Comments */ comments_popup_link('0 <span>'.__('Comments','k2_domain').'</span>', '1 <span>'.__('Comment','k2_domain').'</span>', '% <span>'.__('Comments','k2_domain').'</span>', 'commentslink', '<span class="commentslink">'.__('Closed','k2_domain').'</span>'); ?>
<?php /* Edit Link */ edit_post_link(__('Edit','k2_domain'), '<span class="entry-edit">','</span>'); ?>
<?php /* Tags */ if (is_single() and function_exists('UTW_ShowTagsForCurrentPost')) { ?>
<span class="entry-tags"><?php _e('Tags:','k2_domain'); ?> <?php UTW_ShowTagsForCurrentPost("commalist") ?>.</span>
<?php } ?>
</div> <!-- .entry-meta -->
</div> <!-- .entry-head -->
<div class="entry-content">
<?php the_content(sprintf(__('Continue reading \'%s\'', 'k2_domain'), the_title('', '', false))); ?>
<?php wp_link_pages('before=<p class="page-links"><strong>' . __('Pages:','k2_domain') . '</strong>&after=</p>'); ?>
</div> <!-- .entry-content -->
</div> <!-- #post-ID -->
<?php } /* End The Loop */ ?>
<?php /* Insert Paged Navigation */ if (!is_single() and get_option('k2rollingarchives') != 1) { include (TEMPLATEPATH.'/navigation.php'); } ?>
<?php /* If there is nothing to loop */ } else { define('K2_NOT_FOUND', true); ?>
<div class="hentry four04">
<div class="entry-head">
<h3 class="center"><?php _e('Not Found','k2_domain'); ?></h3>
</div>
<div class="entry-content">
<p><?php _e('Oh no! You\'re looking for something which just isn\'t here! Fear not however, errors are to be expected, and luckily there are tools on the sidebar for you to use in your search for what you need.','k2_domain'); ?></p>
</div>
</div> <!-- .hentry .four04 -->
<?php } /* End Loop Init */
if (isset($_GET['k2dynamic'])) { ?> </div> <?php }
?>
Alles anzeigen
Ich sehe da echt nicht mehr durch :-(
Mh genau das ist das Problem. In mein Dateien kann ich genau das nicht finden. Das Index Template sieht wie folgt aus:
[code=php]<?php get_header(); ?>
<div class="content">
<div id="primary">
<?php if (get_option('k2rollingarchives') == 1) { ?>
<div id="dynamic-content">
<?php include (TEMPLATEPATH . '/rollingarchive.php'); ?>
</div> <!-- #dynamic-content -->
<?php } else { ?>
<div id="current-content" class="hfeed">
<?php include (TEMPLATEPATH . '/theloop.php'); ?>
</div> <!-- #current-content -->
<div id="dynamic-content"></div>
<?php } ?>
</div> <!-- #primary -->
<?php get_sidebar(); ?>
</div> <!-- .content -->
<?php get_footer(); ?>[code=php]
Das einzige das ich überhaupt mit Author und Date finden kann, ist in der [FONT=Courier New]attachment.php:[/FONT]
<?php get_header(); ?>
<div class="content">
<div id="primary">
<div id="current-content" class="hfeed">
<?php
/* Check if there are posts */
if ( have_posts() ) {
/* It saves time to only perform the following if there are posts to show */
/* Count if there are 2+ users */
$count_users = $wpdb->get_var("SELECT COUNT(1) FROM $wpdb->usermeta WHERE meta_key = '" . $table_prefix . "user_level' AND meta_value > 1 LIMIT 2");
/* If there are 2+ users, this is a multiple-user blog */
$multiple_users = ($count_users > 1);
// Get date formats
$dateformat = get_option('date_format');
// This also populates the iconsize for the next line
$attachment_link = get_the_attachment_link($post->ID, true, array(450, 800));
// This lets us style narrow icons specially
$_post = &get_post($post->ID); $classname = ($_post->iconsize[0] <= 128 ? 'small' : '') . 'attachment';
?>
<?php /* Start the loop */ while ( have_posts() ) { the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="<?php k2_post_class(); ?>">
<div class="entry-head">
<h3 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title='<?php printf( __('Permanent Link to "%s"','k2_domain'), wp_specialchars(strip_tags(the_title('', '', false)),1) ); ?>'><?php the_title(); ?></a></h3>
<div class="entry-meta">
<span class="chronodata">
<?php /* Date & Author */
printf(__('Published %1$s %2$s','k2_domain'),
( $multiple_users ? sprintf(__('by %s','k2_domain'), '<address class="vcard author"><a href="' . get_author_posts_url(get_the_author_ID()) .'" class="url fn" title="'. sprintf(__('View all posts by %s','k2_domain'), attribute_escape(get_the_author())) .'">' . get_the_author() . '</a></address>'): ('') ),
'<abbr class="published" title="'. get_the_time('Y-m-d\TH:i:sO') . '">' .
( function_exists('time_since') ? sprintf(__('%s ago','k2_domain'), time_since(abs(strtotime($post->post_date_gmt . " GMT")), time())) : get_the_time($dateformat) )
. '</abbr>'
);
?>
</span>
</div>
</div> <!-- .entry-head -->
<div class="entry-content">
<p class="<?php echo $classname; ?>"><?php echo $attachment_link; ?><br /><?php echo basename($post->guid); ?></p>
<?php the_content(); ?>
</div> <!-- .entry-content -->
</div> <!-- #post-ID -->
<?php comments_template(); ?>
<?php } } else { ?>
<h2><?php _e('Sorry, no attachments matched your criteria.','k2_domain'); ?></h2>
<?php } ?>
</div> <!-- #current-content -->
<div id="dynamic-content"></div>
</div> <!-- #primary -->
<?php get_sidebar(); ?>
</div> <!-- .content -->
<?php get_footer(); ?>
Alles anzeigen
Hallo ich brauche Hilfe. Ich will die Anzeige in mein Weblog ändern und zwar das es so aussieht:
Published 6 July 2007 in [COLOR=black]Books[/COLOR]
Wäre super wenn mir jemand sehr schnell weiterhelfen könnte.