ja so ähnliche php codes sind vorhanden, z.B.:
<?php query_posts('cat=-6,-3&showposts=5'); ?>
<?php while (have_posts()) : the_post(); ?>
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 erstellenja so ähnliche php codes sind vorhanden, z.B.:
<?php query_posts('cat=-6,-3&showposts=5'); ?>
<?php while (have_posts()) : the_post(); ?>
Hat das Theme eine search.php und eine archive.php? Oder läuft alles über die index.php?
eine searchform.php ist vorhanden ; eine archive.php fehlt.
Hi,
bei unserem Blogprojekt funktionieren zwar die ganz normalen Permalinks zu den Artikeln, aber sobald man beispielsweise sich die Artikel eines Monats anzeigen lassen will (durch entsprechendes Teil-Löschen des Permalinks), werden einfach weiter alle Artikel angezeigt.
Genauso wenn man sich die Artikel eines Autoren anzeigen lassen will oder Artikel mit einem entsprechenden Tag.
Ich denke mal, deswegen funktioniert auch zusätzlich die Suche auf unserer Seite nicht.
Ich hoffe, jemand von Euch kennt die Lösung zu dem Problem.
Gruß
Hi,
ich habe bei jedem einzelnen Artikel auf meinem Blog eine Verlinkung zu Amazon. Sprich aus dem Titel des Artikels wird ein Link erzeugt, der auf Amazon linkt und dort die Suchergebnisse präsentiert.
Soweit, so gut.
Allerdings soll dieser Link nur bei Artikeln einer bestimmten Artikel-Kategorie angezeigt werden! müsste doch eigt. ganz einfach sein, oder? Wie lautet der php code dafür?
Danke schon mal für eure Antworten...
eha
Ah okay, ich verstehe.
Wenn's doppelter Aufwand sein darf: Leg die Stichworte einmal als Tags (ganz allgemein) an, und für die Anzeige nochmal als Custom Fields. So kannsst du beides machen - gruppieren über Tags und geordnete Anzeige über benutzerdefinierte Felder.
wie? das versteh ich jetzt nicht genau? soll ja automatisch immer so ablaufen...
wo geb ich dann <tag1> ein, wo <tag2> ?
danke vielmals
gut dann lies dich da durch und dann stell Fragen wos nicht klappte
trau DIch kann nur Fehler geben dann gibts wieder Hilfe
lg
gut danke, soweit klappt das schon mal... aber wie kann ich mehrere kategorien ausschließen?
also genau das:
WordPress Loop Spielerei 2 5 Artikel aber eine Kategorie (ID 6) wurde ausgeschlossen
bloß mit mehreren Kategorien ![]()
JA denke schon... würde gerne von Kategorie "News" z.B. 10 aktuellsten Artikel anzeigen lassen (nur den Textauszug), von der Kategorie "Review" z.B. die 5 aktuellsten mit Thumbnail.
Hey zusammen,
ich benötige etwas Hilfe beim Aufbau eines neuen Blogprojekts.
Wie kann man eine bestimmte Artikelkategorie nur ausgeben auf der Wordpress Seite?
Beste Grüße,
eha
Sowas in der Art.
Ich wills mal so erklären... soll ein filmblog werden.
da soll dann
Regie: <tag1> Darsteller: <tag2>, <tag3> etc.
stehen. evtl. sogar noch drehbuchautor.... gibt es eine tag lösung mit kategorien?
lg
Hi,
ist es möglich, 2 tag systeme parallel im WP laufen zu lassen? Die Ausgabe soll eben so erfolgen:
BLABLABLA: <tag1> BLABLABLA: <tag2> <tag3> <tag4> etc.
und ich weiß nicht, wie ich das mit einem tag system realisieren soll...
Danke schon mal für eure Tipps!
Hallo,
würde mich freuen, wenn ihr mir bei Folgendem helfen könntet ![]()
folgendes ist bei mir der Fall: Ich möchte einen privaten Blog starten, betreibe zur Zeit aber bereits einen fachbezogenen Blog und demnächst ein Gruppenblogprojekt.
Zur Übersicht:
- mein Blog: A
- fachbezogener Blog: B
- Gruppenblog: C
Ich möchte nun auf Blog A alle Artikel von Blog B anzeigen lassen. Sei dies direkt, oder z.B. als wöchentliche Zusammenfassung mit Links zum Blog B. Desweiteren würde ich gerne die von mir verfassten Artikel auf dem Blog C auch auf meinem Blog A anzeigen lassen.
Ist dies irgendwie möglich?
eha
Hi,
ich würde gerne meine Trackbacks und meine Kommentare trennen. Derzeit werden diese zusammengemischt innerhalb der Kommentare veröffentlicht.
Ich bin dazu auf folgende Seite gestoßen, die genau das abbildet, was ich haben möchte: [Wordpress] Kommentare und Trackbacks trennen - aptgetupdate.de
Leider schaffe ich es nicht, meine comments.php mit dem Vorschlag auf dieser Seite erfolgreich zu kombinieren. Kann mir jemand dabei helfen?
Meine comments.php sieht wie folgt aus:
<?php // Do not delete these lines
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die (__('Please do not load this page directly. Thanks!','simpla'));
if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
?>
<p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.','simpla'); ?><p>
<?php
return;
}
}
/* This variable is for alternating comment background */
$oddcomment = 'alt';
?>
<!-- You can start editing here. -->
<script type="text/javascript"><!--
google_ad_client = "pub-8894488939918643";
/* Anzeige auf der Einzelseite (Artikel) */
google_ad_slot = "7477999059";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<p>
<h3 id="comments">Artikeldetails für "<?php the_title(); ?>"</h3>
<ol class="commentlist">
<li class="<?php echo $oddcomment; ?>">
<strong>Autor:</strong> <?php the_author(); ?><br>
<strong>Datum:</strong> <?php the_date('d.m.Y'); ?> um <?php the_time('H:i'); ?> Uhr<br>
<p>
<strong>Themen:</strong> <?php the_category(', '); ?> <br>
<strong>Schlagworte:</strong> <?php the_tags('', ', ', '<br />'); ?> <br>
<strong>Verwandte Artikel:</strong> <?php similar_posts(); ?><br>
<p>
<strong>Statistiken:</strong> <?php if (function_exists('sayfa_sayac')) : ?><?php sayfa_sayac(1, 0, 1, 1); endif; ?>
<br>
<strong>Links:</strong> <a href="<?php get_permalink(id); ?>" target="_blank">Permanent Link</a> | <a href="<?php trackback_url(display); ?>" target="_blank">Trackback URL</a> | <?php comments_rss_link('Kommentar-Feed'); ?><br>
</li>
</ol>
<p><br><p>
<?php if ($comments) : ?>
<h3 id="comments"><?php printf(__('%1$s to “%2$s”','simpla'), comments_number(__('No Responses','simpla'), __('One Response','simpla'), __('% Responses','simpla')), get_the_title()) ?></h3>
<ol class="commentlist">
<?php $comments_counter = 1; ?>
<?php foreach ($comments as $comment) : ?>
<li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
<strong><a href="#comment-<?php comment_ID() ?>" title="">#<?php echo $comments_counter ?></a></strong> |
<?php comment_author_link() ?> <?php _e('sagt:','simpla'); ?>
<?php if ($comment->comment_approved == '0') : ?>
<em><?php _e('Your comment is awaiting moderation.','simpla'); ?></em>
<?php endif; ?>
<br />
<small class="commentmetadata"><?php printf(__('%1$s at %2$s','simpla'), get_comment_date(__('d.m.Y','simpla')), get_comment_time('H:i')) ?></a></small>
<?php comment_text() ?>
</li>
<?php /* Changes every other comment to a different class */
if ('alt' == $oddcomment) $oddcomment = '';
else $oddcomment = 'alt';
?>
<?php $comments_counter++; ?>
<?php endforeach; /* end for each comment */ ?>
</ol>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post->comment_status) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p class="nocomments"><?php _e('Comments are closed.','simpla'); ?></p>
<?php endif; ?>
<?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>
<h3 id="respond"><?php _e('Leave a Reply','simpla'); ?></h3>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p><?printf( __('You must be <a href="%s">logged in</a> to post a comment.','simpla'), get_option('siteurl') . '/wp-login.php?redirect_to=' . get_permalink()) ?></p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p><?php printf( __('Logged in as %s.','simpla'), '<a href="' . get_option('siteurl') . '/wp-admin/profile.php">' . $user_identity . '</a>') ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account','simpla'); ?>"><?php _e('Logout','simpla'); ?> »</a></p>
<?php else : ?>
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<label for="author"><small><?php _e('Name','simpla'); ?> <?php if ($req) echo __('(required)','simpla') ?></small></label></p>
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
<label for="email"><small><?php _e('Mail (will not be published)','simpla'); ?> <?php if ($req) echo __('(required)','simpla') ?></small></label></p>
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><small><?php _e('Website','simpla'); ?></small></label></p>
<?php endif; ?>
<!--<p><small><?php printf(__('<strong>XHTML:</strong> You can use these tags: %s'), allowed_tags()) ?></small></p>-->
<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
<p><input name="submit" type="submit" id="submit" tabindex="5" value=<?php _e('Submit Comment','simpla'); ?> />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
<?php endif; // if you delete this the sky will fall on your head ?>
Alles anzeigen
Kann mir jemand die beiden Dinge so in der comments.php kombinieren, damit Trackbacks und Kommentare getrennt werden?
Für eure Hilfe danke ich euch jetzt schon ![]()
eha
Besten Dank, hat gefunzt ![]()
eintragung gelöscht
PHP<li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>"> <strong><a href="#comment-<?php comment_ID() ?>" title="">#[COLOR=Red]<?php comment_ID() ?>[/COLOR]</a></strong> | <?php comment_author_link() ?> <?php _e('sagt:','simpla'); ?> <?php if ($comment->comment_approved == '0') : ?> <em><?php _e('Your comment is awaiting moderation.','simpla'); ?></em> <?php endif; ?> <br />An der rot markierten Stelle muss du einen selbstdefinierten Zähler ausgeben. Dieser wird vor dem Kommentarloop mit 1 initialisiert und am Ende des Kommentarloops jeweils inkrementiert.
urghs... einfach gesagt: zwischen die Klammern ne 1 schreiben? ![]()
Hallo,
bei mir stimmt etwas mit den Kommentar IDs nicht (schon länger, aber ich will jetzt endlich dem entgegenwirken ;))
Schaut es euch mal hier in der "Live" Version an: Problematik der Zulässigkeit einer Verlinkung auf offensichtlich rechtswidrige URLs | IT-Recht Blog
Wie ihr seht, sind dort die Kommentare 186 und 187 zu sehen. Ich will aber, dass diese Kommentare sich nur auf den Artikel beziehen, und somit 1 und 2 heißen.
Im Code schauts so aus:
<li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
<strong><a href="#comment-<?php comment_ID() ?>" title="">#<?php comment_ID() ?></a></strong> |
<?php comment_author_link() ?> <?php _e('sagt:','simpla'); ?>
<?php if ($comment->comment_approved == '0') : ?>
<em><?php _e('Your comment is awaiting moderation.','simpla'); ?></em>
<?php endif; ?>
<br />
Kann jemand helfen?
Viele Grüße,
eha
ja klar ![]()
müsste wpsearch oder "search everything" gewesen sein...
Danke, jetzt geht es! Ein Plugin hat gestört.....