In diesem Tutorial zeige ich, wie man den Bereich der Sondermeldungen - der Featured Articles - auf der Homepage von BranfordMagazine verwendet.
Die Idee hinter den Featured Articles ist es, einen Bereich für Teaser von speziellen Meldungen oder was auch immer Du in einer besoderen Weise darstellen willst, zu haben.
Lege eine Kategorie an und benenne sie beispielsweise “Sondermeldungen”. Stelle sicher, dass die ID dieser Kategorie im entsprechenden Bereich der index.php aufgerufen wird.
Der betreffende Bereich im Code ist “leftcol”. Du musst die Kategorie im Aufruf query_posts festlegen. Wobei “showposts=3″ bedeutet, dass die drei letzten Beiträge dieser Katagorie hier angezeigt werden. “cat=7″ bedeutet, dass es sich um die Kategorie mit der ID 7 handelt. Die ID musst Du noch einmal im Template Tag wp_list_catagories festlegen, damit oberhalb der drei Artikel auch die Kategorie Bezeichnung als Überschrift erscheint.
Erneut werden hier benutzerdefinierte Felder zur Anzeige des jeweiligen Bildes verwendet. Der Schlüssel für das Bild lautet “featuredarticleimage”.
Wenn Du diese Kategorie nicht zusätzlich in der Sidebar anzeigen willst, musst Du sie dort ausschließen.
Please use the comment/reply function only for general commments, not for support requests. I will NOT answer any questions about themes support here or via email. Support request comments will be deleted without further notice. If you need support concerning my themes goto the support forums. Thanks for your understanding.
I did not know that. thanks for the update
I finally made it! All I had to change were some numbers around line 43 and line 46 in the index.php file! Check them out if you have similar problems.
Now I have another issue though: what I want to show on the left column in the homepage is some articles from THE SAME CATEGORY, so I deleted all IDs which don’t belong to the category I want to appear from the array created at line 43. Problem is that the articles now show without any separation line between them, there’s not even some space between them.
What should I do to have them separated like if thy where from two separated categories?
Does anyone know how can I prevent Featured Articles from showing on the right column in the homepage?! Right now they show both on the left and the right column in the homepage and the result is not that nice. I couldn’t work out any solution on the index.php file with my poor php knowledge.
[Michael, I'm sorry I write here, but the Forum is locked and I really need help from the community here...].
If you only would read…”Please use the comment function only for commments, not for support requests. I will NOT answer to any question about themes support here. If you need any support concerning my themes goto the support forums.”
Hello,
I used custom fields to post an image in the articles of the left-hand column of Features with the key ” featuredarticleimage”. All was all right. I created another blog by copying the files which were used to set up the first. I have done the same procedure to insert my photographs with the custom fields and there it’s impossible to post my photographs, in the place i have simply an empty rectangle with the label “featureimage”. I reloaded my images, I recreated custom fields and then nothing.The others pages models (3 columns, featured-page) function very well ??
I really do not know where does the problem comes??
thanks, this was exactly what i was looking for, but i still dont understand how to make featured stories on home page.
I was looking for a new theme for my website and this is exactly what I was looking for ! I am still testing it but it works really great !!! Thank’s for sharing !
From my part you’ll have all the support you’ll need to develop it in the future !!!
I was looking for a new theme for my website and your’s it’s exactly what I was looking for ! It is just great !!! Thank you for sharing it ! I am still testing it but it works really great ! From me , you’ll have all the support you’ll need to develop this theme in the future !
Thank you !