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.
Kein Author anzeigen!
-
-
- Gerade eben
- Anzeige
Hallo!
Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.
- ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
- ✔️ Deutsche Server & DSGVO-konform
- ✔️ Persönlicher Support (kein 0815-Ticket-System)
-
-
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
Alles anzeigen<?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(); ?> -
ZitatPHP
Alles anzeigen<?php get_header(); ?> <div class="content"> <div id="primary"> <?php if (get_option('k2rollingarchives') == 1) { ?> <div id="dynamic-content"> [COLOR="Red"]<?php include (TEMPLATEPATH . '/[B]rollingarchive.php[/B]'); ?>[/COLOR] </div> <!-- #dynamic-content --> <?php } else { ?> <div id="current-content" class="hfeed"> [COLOR="Blue"]<?php include (TEMPLATEPATH . '/[B]theloop.php[/B]'); ?>[/COLOR] </div> <!-- #current-content --> <div id="dynamic-content"></div> <?php } ?> </div> <!-- #primary --> <?php get_sidebar(); ?> </div> <!-- .content --> <?php get_footer(); ?>Guck dir die beiden Dateien mal an.
-
Guck dir die beiden Dateien mal an.
Also das ist der rollingarchives.php code:PHP
Alles anzeigen<?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 -->
Und das von theloop.phpPHP
Alles anzeigen<?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 } ?>
Ich sehe da echt nicht mehr durch :-( -
Und das von theloop.phpPHP
Alles anzeigen<?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','k2_domain'), [COLOR="Red"] ( $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>') : ('') ), [/COLOR] '<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 } ?>
Ich sehe da echt nicht mehr durch :-(Ja, das Theme ist echt geil :mrgreen:
Ich hab dir mal was markiert. -
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? -
Ja, kannst du löschen oder auskommentieren. Aber Achtung, ich habs nochmal neu markiert, damit du nicht zuviel löschst.
Wegen Navi: Entweder neuen Thread im Design-Forum (Design-Problem? Wenn nicht, dann Konfiguration oder so), oder frag einfach in diesem Thread weiter.
-
Ä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. -
So, ich habs nochmal neu markiert. Das printf( muss stehen bleiben. Sorry, mein Fehler. Jetzt sollte es gehen. (Achtung, ich hab auch in dem direkt auf printf folgenden - vor dem rot markierten - eine Kleinigkeit verändert: __('Published %1$s','k2_domain') statt __('Published %1$s %2$s','k2_domain'))
Link hilft mir grade nicht viel, kanns im Moment eh nicht testen. ;-)Mach mit der Navi mal nen neuen Thread auf, kann ich grade nix dazu sagen. Ein Link wäre vielleicht hilfreich, damit man sich das mal angucken kann.
-
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 ;-) -
Na wunderbar! :-D
-
Ohje, das Theme K2 kommt höchstens in meinen Albträumen vor ;)
Das wurde glaub ich nach dem Motto erstellt mach' es möglichst kompliziert und schwer durchschaubar ;) -
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 -
Warum muss man jedesmal wenn wordpress ein update bringt gleich alle themes mitändern.
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">' . 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>[/COLOR]',
Das sollte alles zum Autor sein, wenn ich das richtig überblicke... -
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 -
Und? Was passiert wenn du das raus nimmst?
-
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 -
-
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
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!