Es muss ein Tag sein, weil ich sicherlich keine 200-300 Kategorien anlege. :)
Ok ich schau mir das mal an.
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 erstellenEs muss ein Tag sein, weil ich sicherlich keine 200-300 Kategorien anlege. :)
Ok ich schau mir das mal an.
Wenn ich den folgenden Code verwende, kommt kein Fehler und es werden Artikel angezeigt, doch wahllos irgendwelche.
<ul>
<?php
global $post;
$args = array( 'posts_per_page' => 5, 'offset'=> 1, 'category' => 1, 'tag' => $tag );
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); ?>
<li>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</li>
<?php endforeach; ?>
</ul>
Alles anzeigen
Also mit der Ausgabe meine ich andere Artikel zu genau diesen Werten, nicht nur die Tags. :) Sondern richtig mit Title, Excerpt usw. Wie genau kann ich aber einstellen. Ich brauche nur die oben genannte Funktion. :)
Hallo,
erstmal vielen Dank für deine Antwort.
Das ist etwas komplizierter. Wollte es so einfach wie möglich beschreiben.
Artikel A hat als Schlagwort "SEO" und als Kategorie "Hilfe".
Ich suche eine Ausgabe mit der ich alle Artikel mit genau diesen beiden Attributen ausgeben kann. Die Kategorie kann gerne vorgegeben sein, also auch direkt benannt sein bspw. id=3, während das Schlagwort das Schlagwort sein soll, welches auch in der News ist.
PS: Der Code von mir ging nicht. :( Hast du nicht als Spezialist auf die schnelle einen funktionierenden Code? Kenne mich leider auch nicht so gut aus. :) Wäre dir sehr dankbar.
Hi,
danke.
Kann ich das so lösen?
<ul> <?php global $post; $tmp_post = $post; $args = array( 'posts_per_page' => 5, 'offset'=> 1, 'category' => 1 'tag' => $tag ); $myposts = get_posts( $args ); foreach( $myposts as $post ) : setup_postdata($post); ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endforeach; ?> <?php $post = $tmp_post; ?> </ul>
$tag soll hier das Benutzen des aktuell benutzten tags sein.
Beispielsweise schreibe ich einen Artikel mit dem Tag "Seo" in der Kategorie Hilfe.
Wie kann ich denn alle Artikel mit genau diesen Attributen ausliefern lassen?
Hallo,
ich bin am verzweifeln. ich brauche einen Code um in der single.php alle weiteren Artikel zum benutzten Schlagwort auszugeben.
Als zweites bräuchte ich noch eine Ausgabe-Form, bei der ich Artikel nach dem benutzten Schlagwort aus einer bestimmten Kategorie ausgeben kann.
Über Hilfe wäre ich sehr, sehr dankbar.
Viele Grüße,
Chris
Es ist wirklich wichtig für mich!
Kann keiner helfen???
LOL ne ich hab über 500 Artikel.
Hmm wie kann ichs anders erklären...
Also die neuesten 20 Artikel werden ganz normal in HOME gezeigt. wie oben in meiner lächerlichen Zeichnung lol
Latest posts zeigt ja wirklich immer die letzten... ich möchte aber bei dem 21. in der sidebar anfangen, sodass auch die artikel von vor 2 tagen dann rechts angezeigt werden, nämlich so:
[LEFT]Content: Sidebar:
1._______21.
2._______22.
3._______....
..._______usw.
...
20.[/LEFT]
Ich denke jetzt müsste man es verstanden haben sry... xD
Danke vielleicht weißt du oder jemand anderes die lösung
[LEFT]Hallo,[/LEFT]
[LEFT]ich suche ein Plugin mit dem man die letzten Artikel in der Sidebar einzeigen lassen kann. Ich habe 20 Artikel auf der Startseite und möchte gerne in der Sidebar sozusagen ab dem 21. Artikel anfangen.[/LEFT]
[LEFT]Also:[/LEFT]
[LEFT]Content: Sidebar:
1._______21.
2._______22.
3._______....
..._______usw.
...
20.[/LEFT]
[LEFT]Wenn mir einer sagen kann, was das für ein Plugin ist, bin ich ihm ewig dankbar!^^[/LEFT]
[LEFT]Greetz only[/LEFT]
kann mir keiner helfen? ist doch bestimmt nicht so schwer oder? bitte helft mir
erledigt erledigt erledigt erledigt erledigt erledigt erledigt erledigt erledigt erledigt erledigt erledigt
Hallo,
habe folgendes Problem. Wenn ich eine Gallerie einfüge, dann müsste sich ja normalerweise ein bild öffnen, bei dem ich noch den Hintergrund der News sehen kann. es ging auch kurz doch nun wird eine neue Seite geöffnet in der nur das eine Bild ist...
Also ich kann nicht mehr Vor oder Zurück anklicken. Das ist ja aber das, was an dem Plugin so geil ist.
Bitte ich brauche Hilfe...
Vielleicht liegt es auch an den Settings wie muss ich es einstellen?!?!
MfG only
Einen Guten Abend Wordpress Community,
ich brauche dringend Hilfe, wie ich die linke Spalte verkleinern kann, um die Rechte größer zu machen. Es ist echt wichtig für mich, weiß aber leider nicht wie es geht.
Hier ist die CSS-Datei:
/* LAYOUT */
body {
background: url(images/background.jpg) center top no-repeat;
}
#wrapper {
background: url(images/wrapper-bg.png) left 234px repeat-x;
}
#container {
}
#contentwrap {
background: url(images/contentwrap.png) center top repeat-y;
}
a {
color: #010101;
}
a:hover {
color: #5e0000;
}
/* HEADER */
#header {
height: 144px;
}
#header h1 {
margin-bottom: 0px !important;
padding: 36px 0 0 15px;
font-weight: normal;
font-family: Arial, Helvetica, Sans-serif;
font-weight: bold;
font-size: 48px;
}
#header h1 a, #header h1 a:visited {
color: #1A1E25;
text-decoration: none;
}
#header h2 {
padding-left: 15px;
color: #787D87;
font-size: 14px;
font-family: Arial, Helvetica, Sans-serif;
}
.logoimg {
margin: 40px 0 0 0px;
}
/* NAVIGATION MENUS */
#pagemenucontainer {
height: 34px;
padding-left: 0px;
margin-top: 10px;
float: left;
}
#pagemenu {
height: 34px;
background: url(images/pagenav-bg.png) left top repeat-x;
}
#pagemenu, #pagemenu ul {
padding: 0;
margin: 0;
list-style: none;
line-height: 1;
}
#pagemenu {
margin-bottom: 1px;
}
#pagemenu ul {
float: left;
list-style: none;
margin: 0px 0px 0px 0px;
padding: 0px;
}
#pagemenu li {
float: left;
list-style: none;
margin: 0px;
padding: 0px 2px 0 2px;
}
#pagemenu ul li {
list-style: none;
margin: 0px;
padding: 0;
}
#pagemenu li a, #pagemenu li a:link {
color: #1A1C1F;
display: block;
margin: 0;
padding: 10px 10px;
text-decoration: none;
text-transform: uppercase;
font-size: 11px;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
border-top: 3px solid #555657;
}
#pagemenu li a:hover, #pagemenu li a:active{
color: #5e0000;
display: block;
text-decoration: none;
background: url(images/pagenav-hover.png) center top no-repeat;
border-top: 3px solid #8f1010;
}
#pagemenu li.current_page_item a {
color:#5e0000;
background: url(images/pagenav-hover.png) center top no-repeat;
border-top: 3px solid #8f1010;
}
#pagemenu li:hover, #pagemenu li.sfhover {
position: static;
}
#navcontainer {
height: 46px;
background: #1A1C1F;
display: block;
overflow: hidden;
}
#navcontainer .current-cat a {
background: url(images/nav-background-hover.png) top left repeat-x;
color:#EDF0F4;
}
/* CONTENT */
#content {
color: #545555;
padding: 15px;
}
pre { overflow: auto;
width: 470px;
}
.post {
padding-bottom: 15px;
margin-bottom: 15px;
border-bottom: 1px dashed #B3B4B4;
}
.post p {
margin-bottom: 10px;
}
.title {
margin: 0 0 8px 0;
padding: 0px;
line-height: 22px;
font-family: Arial, Helvetica, Sans-serif;
font-weight: bold;
color: #1B1D20;
}
.title a {
text-decoration: none;
color: #1B1D20;
}
.title a:hover {
text-decoration: none;
color: #537C04;
}
.pagetitle {
margin-bottom: 20px;
line-height: 22px;
font-family: Arial, Helvetica, Sans-serif;
text-decoration: underline;
}
.postdate {
font-size: 13px;
font-family: Arial, Helvetica, Sans-serif;
font-style: italic;
color: #1B1D20;
}
.postmeta {
font-size: 11px;
padding: 2px 4px;
font-family: Arial, Verdana;
}
.postdate img, .postmeta img {
border: none;
vertical-align: middle;
margin:2px;
}
.entry {
text-align: justify;
line-height: 20px;
padding-top: 8px;
font-family: Arial, Verdana;
font-size: 14px;
}
.navigation {
padding: 10px 0;
}
blockquote {
overflow: hidden;
padding-left: 9px;
font-style: italic;
color: #666;
border-left: 3px solid #CADAE7;
}
.post img {
max-width: 680px;
}
img.wp-smiley {
max-height: 12px;
margin: 0;
padding: 0;
border: none;
}
.aligncenter,
div.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
.alignleft {
float: left;
}
.alignright {
float: right;
}
.wp-caption {
border: 1px solid #ddd;
text-align: center;
background-color: #f3f3f3;
padding-top: 4px;
margin: 10px;
/* optional rounded corners for browsers that support it */
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.wp-caption img {
margin: 0;
padding: 0;
border: 0 none;
}
.wp-caption p.wp-caption-text {
font-size: 11px;
line-height: 17px;
padding: 0 4px 5px;
margin: 0;
}
/* wp-pagenavi */
.wp-pagenavi a, .wp-pagenavi a:link, .wp-pagenavi a:active {
font-size: 15px !important;
padding: 4px 8px !important;
color: #555657 !important;
background:none !important;
border: 0 !important;
}
.wp-pagenavi a:hover {
border: 0 !important;
color: #FFFFFF !important;
background:#555657 !important;
border: 0 !important;
}
.wp-pagenavi span.pages {
font-size: 15px !important;
padding: 4px 8px !important;
color: #555657 !important;
background: none !important;
border: 0 !important;
}
.wp-pagenavi span.current {
font-size: 15px !important;
padding: 4px 8px !important;
font-weight: bold;
color: #FFFFFF !important;
background:#466414 !important;
border: 0 !important;
}
.wp-pagenavi span.extend {
font-size: 15px !important;
padding: 4px 8px !important;
background:transparent !important;
color: #555657 !important;
background: none !important;
border: 0 !important;
}
/* SIDEBAR(S) */
.sidebaradbox {
margin-top: 5px;
text-align:center;
}
.ad125 {
margin: 10px;
}
.sidebar {
margin: 0;
color: #3E3F3F;
background: #d0d0d0;
}
.sidebar-right {
margin: 0 1px 0 0;
}
.sidebar-left {
margin: 0 0 0 1px;
}
.sidebar a {
text-decoration: none;
color: #3E3F3F;
}
.sidebar a:hover {
text-decoration: underline;
color:#5e0000;
}
#search {
border: 1px solid #BBBEC0;
height: 26px;
padding: 0;
background: #FFFFFF;
text-align: right;
}
#search input {
border: 0;
background: none;
color: #3F3F3F;
}
#s {
width: 220px;
padding: 4px;
margin:0px 0 0 0;
background: none;
}
#topsearch #search {
margin-top: 8px;
}
#topsearch #s {
width: 230px;
}
.sidebar h2 {
margin: 10px 0 0 0;
padding: 12px 0 12px 10px;
background: url(images/sidebar_tab.png) left top repeat-x;
font-size: 14px;
line-height: 16px;
font-family: Arial, Helvetica, Sans-serif;
font-weight: bold;
text-transform: uppercase;
color: #F3F3F3;
}
.rssbox {
background: #F4F4F4;
border: 1px solid #E5E7E7;
padding: 10px;
margin: 10px 0 0 0;
}
.rssbox:hover {
border: 1px solid #E5E7E7;
background: #FFFFFF;
}
.rssbox a {
color: #1B1D20;
text-transform: uppercase;
font-size: 12px;
font-weight: bold;
text-decoration: none;
font-family: Arial, Helvetica, Sans-serif;
}
.rssbox a:hover {
color: #1B1D20;
text-decoration: underline;
}
.twitterbox {
background: #F4F4F4;
border: 1px solid #E5E7E7;
padding: 10px;
margin: 10px 0 0 0;
}
.twitterbox:hover {
border: 1px solid #E5E7E7;
background: #FFFFFF;
}
.twitterbox a {
color: #1B1D20;
text-transform: uppercase;
font-size: 12px;
font-weight: bold;
text-decoration: none;
font-family: Arial, Helvetica, Sans-serif;
}
.twitterbox a:hover {
color: #1B1D20;
text-decoration: underline;
}
.sidebar ul {
list-style-type: none;
margin: 0px 0px 10px 0px;
padding: 0px;
}
.sidebar ul li {
list-style-type: none;
margin: 0px 0px 5px 0px;
padding: 0px;
}
.sidebar ul ul {
list-style-type: none;
margin: 0px;
padding: 0;
}
.sidebar ul li li {
padding: 6px 0 6px 10px;
margin:0px;
background: url(images/arrow.png) left 13px no-repeat;
}
.sidebar ul li ul li {
background: url(images/arrow.png) left 13px no-repeat;
padding: 6px 0 6px 10px;
margin: 0;
}
#wp-calendar th {
font-style: normal;
text-transform: capitalize;
color: #3E3F3F;
background: none;
}
#wp-calendar caption {
padding: 2px 4px;
text-transform: uppercase; margin: 2px 0 2px 0;
background: none;
color: #3E3F3F;
}
#wp-calendar td {
color: #3E3F3F;
font: normal 12px 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
letter-spacing: normal;
padding: 2px 0;
text-align: center;
}
#wp-calendar td:hover, #wp-calendar #today {
background: #466414;
color: #fff;
}
#wp-calendar {
empty-cells: show;
font-size: 14px;
margin: 0;
font-weight: bold;
width: 95%;
}
/* FOOTER */
#footer {
background: #262D31;
padding: 20px 0;
text-align: center;
color: #F4F4F4;
font-size: 13px;
margin-top: 10px;
}
#footer a {
color: #F4F4F4;
}
#footer a:hover {
text-decoration: none;
}
#footer2 {
color: #262D31;
font-size: 0px;
text-align: center;
padding: 10px;
}
#footer2 a {
color: #262D31;
text-decoration: none;
}
/* COMMENTS */
#comments h3 {
margin-bottom: 10px;
}
#commentform input {
width: 170px;
padding: 2px;
margin: 5px 5px 1px 0;
}
#commentform {
margin: 5px 10px 0 0;
}
#commentform textarea {
width: 100%;
padding: 2px;
}
#respond:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
#commentform #submit {
margin: 0 0 5px auto;
float: right;
}
.alt {
margin: 0;
padding: 10px;
}
.commentlist {
padding: 0;
text-align: justify;
}
.commentlist li {
margin: 15px 0 10px;
padding: 5px 5px 10px 10px;
list-style: none;
}
.commentlist li ul li {
margin-right: -5px;
margin-left: 10px;
}
.commentlist p {
margin: 10px 5px 10px 0;
}
.children { padding: 0; }
#commentform p {
margin: 5px 0;
}
.nocomments {
text-align: center;
margin: 0;
padding: 0;
}
.commentmetadata {
margin: 0;
display: block;
}
.post_thumbnail {
padding: 6px;
background: #FFFFFF;
border: 1px solid #DFDFDF;
margin: 0 10px 10px 0;
}
Alles anzeigen
Grüße only
<div class="span-8 last">
<div class="sidebar">
<?php if(get_theme_option('socialnetworks') != '') {
?>
<div class="addthis_toolbox">
<div class="custom_images">
<a class="addthis_button_twitter"><img src="<?php bloginfo('template_directory'); ?>/images/socialicons/twitter.png" width="32" height="32" alt="Twitter" /></a>
<a class="addthis_button_delicious"><img src="<?php bloginfo('template_directory'); ?>/images/socialicons/delicious.png" width="32" height="32" alt="Delicious" /></a>
<a class="addthis_button_facebook"><img src="<?php bloginfo('template_directory'); ?>/images/socialicons/facebook.png" width="32" height="32" alt="Facebook" /></a>
<a class="addthis_button_digg"><img src="<?php bloginfo('template_directory'); ?>/images/socialicons/digg.png" width="32" height="32" alt="Digg" /></a>
<a class="addthis_button_stumbleupon"><img src="<?php bloginfo('template_directory'); ?>/images/socialicons/stumbleupon.png" width="32" height="32" alt="Stumbleupon" /></a>
<a class="addthis_button_favorites"><img src="<?php bloginfo('template_directory'); ?>/images/socialicons/favorites.png" width="32" height="32" alt="Favorites" /></a>
<a class="addthis_button_more"><img src="<?php bloginfo('template_directory'); ?>/images/socialicons/more.png" width="32" height="32" alt="More" /></a>
</div>
<script type="text/javascript" src="[URL]http://s7.addthis.com/js/250/addthis_widget.js?pub=xa-4a65e1d93cd75e94"></script[/URL]>
</div>
<?php
}
?>
<?php if(get_theme_option('ads_125') != '') {
?>
<div class="sidebaradbox">
<?php sidebar_ads_125(); ?>
</div>
<?php } ?>
<ul>
<?php
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
<li><h2><?php _e('Recent Posts'); ?></h2>
<ul>
<?php wp_get_archives('type=postbypost&limit=5'); ?>
</ul>
</li>
<li><h2>Archives</h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>
<li>
<h2>Calendar</h2>
<?php get_calendar(); ?>
</li>
<?php wp_list_categories('hide_empty=0&show_count=1&depth=1&title_li=<h2>Categories</h2>'); ?>
<li id="tag_cloud"><h2>Tags</h2>
<?php wp_tag_cloud('largest=16&format=flat&number=20'); ?>
</li>
<?php wp_list_bookmarks(); ?>
<?php include (TEMPLATEPATH . '/recent-comments.php'); ?>
<?php if (function_exists('get_recent_comments')) { get_recent_comments(); } ?>
<li><h2>Meta</h2>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="[URL]http://gmpg.org/xfn/"><abbr[/URL] title="XHTML Friends Network">XFN</abbr></a></li>
<li><a href="[URL]http://wordpress.org/[/URL]" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
<?php wp_meta(); ?>
</ul>
</li>
<?php endif; ?>
Alles anzeigen
wo genau?
ok twitter entfernt guck mal bitte erneut... nur noch 2 errors :)
kannste mir die 2 schnell löschen? xD dann bist du mein gott^^
jo das wird auch angezeigt, aber wie komm ich an die datei dran? und meinst du das twitter tool, damit die posts direkt auf twitter angezeigt werden? denn dann könnt ich es ja wegmachen und ein anderes nehmen oder?
hm.. kann mir keiner helfen? BITTE^^
schick mal den html code deines artikels dann schau ich mal :)
das steht da als hinweis:
How to add images to your featured posts slideshow?
» If you are using WordPress version 2.9 and above: Just set "Post Thumbnail" when adding new post for the posts in selected category above.
» If you are using WordPress version under 2.9 you have to add custom fields in each post on the category you set as featured category. The custom field should be named "featured" and it's value should be full image URL. [COLOR=#21759b]Click here[/COLOR] for a screenshot.
jo ich muss ein thumpnail posten.... das ist sehr schade dass es net geht...