Support Forum

Willkommen im Support Forum. Bitte nutzt das Forum für alle Fragen, Probleme und Fehlermeldungen rund um meine Themes. Ihr müsst dazu nicht registriert sein. Ihr könnt hier in Deutsch oder auch Englisch posten.

WICHTIG: Ich stehe NICHT für individuelle Programmierarbeiten, oder Themeanpassungen zur Verfügung. Bitte lest zuerst die “Forumsregeln” bevor Ihr postet.

Welcome to the support forums. Please use this forums for any type of questions, bug-reports or any other related stuff concerning my themes. You don´t have to be registered to post in this forum.

IMPORTANT: I am NOT available for any kind of freelance programming or theme customization. Please read the “forum rules” before you post.

Current User: Guest Login Register
Please consider registering

Search 
Search Forums:


 




Problem mit Top-Kategorie und Featured Page

Reply to Post
UserPost

19:06
29. March 2008


Michael Oeser

Admin

posts 358

Der Code des Leadartikels steht ja in der Datei “ui.tabs.php” - Sorry, hatte ich vergessen zu erwähnen. Dort brauchst Du diese Stelle:

<!– LEAD ARTICLE –>
<div id=”fragment-1″>
<ul id=”leadarticle”>
<?php
// Lead Story module begins
query_posts('showposts=1&cat=1'); //selects 1 article of the category with ID 1 ?>
<?php while (have_posts()) : the_post(); ?>
<a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><img src=”<?php bloginfo('url'); echo '/'; echo get_option('upload_path'); echo '/';
// this is where the Lead Story image gets printed
$values = get_post_custom_values(”leadimage”); echo $values[0]; ?>” alt=”leadimage” id=”leadpic” /></a>
<h3>
<?php
// this is where the name of the Lead Story category gets printed
wp_list_categories('include=1&title_li=&style=none'); ?>
</h3>
<a href=”<?php the_permalink() ?>” rel=”bookmark” title=”<?php __('Permanent Link to','branfordmagazine')?> <?php the_title(); ?>” class=”title”>
<?php
// this is where the title of the Lead Story gets printed
the_title(); ?>
</a>
<?php
// this is where the excerpt of the Lead Story gets printed
the_excerpt() ; ?>
<?php endwhile; ?>
</ul>
</div>
<!– END LEAD ARTICLE –>

Die blau markierten Teile sind entscheidend. Bei mir steht hier die ID 1 drin,weil das meine Kategorie mit der Bezeichnung “News” ist.

Bei der sidebar.php verhält es sich ähnlich. Such nach den Zeilen (normalerweise ab Zeile 28)

<?php if ( is_home() ) { ?>
<li>
<h3>
<?php
// this is where the name of the News (or whatever) category gets printed
wp_list_categories('include=1&title_li=&style=none'); ?>
</h3>
<?php
// this is where the last three headlines are pulled from the News (or whatever) category
query_posts('showposts=5&offset=1&cat=1');
?>
<ul class=”bullets”>
<?php while (have_posts()) : the_post(); ?>
<li><a href=”<?php the_permalink() ?>” rel=”bookmark”>
<?php the_title(); ?>
</a></li>
<?php endwhile; ?>
</ul>
</li>
<?php } ?>
<li>

Auch hier muss anden blauen Stellen die ID Deiner Kategorie rein.

13:45
28. March 2008


BeTZe

Guest

Es gibt eine Kategorie. Die heisst Top News. Aber wo genau in der index.php soll ich die angeben. Ich finde da nur die Kategorien für die linke und rechte Spalte unterhalb des Lead Artikels.

21:11
27. March 2008


Michael Oeser

Admin

posts 358

Gibt es eine spezifische Kategorie, die dort angezeigt werden soll und hast Du die ID der Kategorie an entsprechender Stelle in der index.php eingetragen?

Eine Seite wird nur dann eine “featured page” wenn Du beim Schreiben der Seite auch das entsprechende Template (siehe Screenshot) auswählst.

17:50
27. March 2008


BeTZe

Guest

Hallo nochmals,

leider habe ich noch zwei Probleme.

1. Im Lead Artikel und oben in der Sidebar erscheint statt dem Kategorienamen nur “Keine Kategorien”. Woran liegt das? Beiträge werden aber angezeigt…

2. Ich habe in meinem Blog mehrere Seiten erstellt. Nun wollte ich daraus eine “Featured Page” machen. Dafür habe ich in den jeweiligen Seiten die benutzerdefinierten Felder hinzugefügt. Leider wird mir noch immer die alte Seite angezeigt. Keine Featured Page. Muss ich die noch aktivieren?

Danke und schöne Grüße

Reply to Post


Reply to Topic: Problem mit Top-Kategorie und Featured Page
Please make sure your support question wasn´t posted (and answered) before. Please use the forums search to avoid double posts.

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 12 + 2        (Required)

Topic Reply:


 
© Simple:Press Forum - Version 3.0.3 (Build 320)  


Readers voices

  • hitman: Thanks! I added it to my blog. Regards.
  • Tom: mist: das stand hier schon… (leadimage ;.-) was aber bleibt: mein Kompliment...
  • Tom: kleine Anmerkung: vielleicht hilft’s ja jemand, aber ich hab ne Weile...
  • luxury furniture: I’ll try this package soon as possible on my web site, thanks!
  • Richard: Ein wirklich sehr schönes Theme. Ich hab es gleich mal gebookmarkt und werde...

Featured

    Get my brandnew theme WyntonMagazine - Ready for localization. Additional features.

  • WyntonMagazine WordPress theme
  • Get my theme BranfordMagazine - English, German and other languages available.

  • BanfordMagazine WordPress theme
  • Get the e-book "Sites that Soar" More info

  • Get the e-book 'Sites that Soar'

Spenden / Donate

    Falls Ihnen meine Arbeit etwas Geld wert ist. / If you feel my work is worth a little money.