Moin, möchte auf meiner Startseite, einen Artikel so einbinden, dass ich ihn immer wieder ändern kann und er dann auf der Startseite angezeigt wird
Hoffe es ist verständlich was ich mein, sonst bitte fragen...
Seite in die Startseite einbinden
-
-
- 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)
-
Die einfachste Variante: http://faq.wordpress-deutschland.org/sticky-post/
-
guuuuuuut
dann war meine frage doch nicht so verwirrend gestellt!!! man denkt auch immer zu kompliziert! Danke
-
doch noch nicht so gut!
habe jetzt meinen Artikel ,,gestickt" jedoch wird er nicht auf der Startseite angezeigt!!!!
Ich verwende Branford Magazine Theme und finde absolut nicht den Grund warum der mir den Artikel nicht anzeigt!!!
Bitte um Hilfe -
Das könnte am Theme liegen.
-
Lösung?
hier meine index:
PHP
Alles anzeigen<?php get_header(); ?> <div id="content"> <?php // Include tabs with the lead story include(TEMPLATEPATH . '/ui.tabs.php'); ?> <div class="post sticky hentry category-Opener"> // Beitragsinhalte </div> <?php if ( is_category && category_description() != 'Opener' ) { echo category_description(); } ?> <div id="leftcol"> <?php // "Featured articles" module begins query_posts('showposts=3&cat=7'); ?> <h3> <?php // name of the "featured articles" category gets printed wp_list_categories('include=7&title_li=&style=none'); ?></h3> <?php while (have_posts()) : the_post(); ?> <div class="feature"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('url'); ?>/wp-content/uploads/ <?php // this is where the custom field prints images for each Feature $values = get_post_custom_values("featuredarticleimage"); echo $values[0]; ?>" alt="" /></a><a href="<?php the_permalink() ?>" rel="bookmark" class="title"> <?php // title of the "featured articles" the_title(); ?></a> <p><?php the_content_rss('', TRUE, '', 20); ?></p> </div> <?php endwhile; ?> </div><!--END LEFTCOL--> <div id="rightcol"> <?php // enter the IDs of which categories you want to display $display_categories = array(3,4,5,6); foreach ($display_categories as $category) { ?> <div class="clearfloat"> <?php query_posts("showposts=1&cat=$category"); $wp_query->is_category = false; $wp_query->is_archive = false; $wp_query->is_home = true; ?> <h3><a href="<?php echo get_category_link($category);?>"><?php // name of each category gets printed single_cat_title(); ?></a></h3> <?php while (have_posts()) : the_post(); ?> <?php // this grabs the image filename $values = get_post_custom_values("rightcolimage"); // this checks to see if an image file exists if (isset($values[0])) { ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('url'); ?>/wp-content/uploads/<?php $values = get_post_custom_values("rightcolimage"); echo $values[0]; ?>" alt="" /></a> <?php } ?> <a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php // this is where title of the article gets printed the_title(); ?></a><br /> <?php the_excerpt() ; ?> <?php endwhile; ?> </div> <?php } ?> </div><!--END RIGHTCOL--> </div><!--END CONTENT--> <?php get_sidebar(); ?> <?php get_footer(); ?>
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!