PaulBalluff
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Style depending on CategoryThanks everyone!!
Alchymyth’s solution does exactly what I want: the post which is on top determines the blog style!Thank you again for your patience and assistance!
Forum: Fixing WordPress
In reply to: Style depending on CategoryThank you mindctrl for the good idea.
As my programming skills are not very advanced, it took me a while to understand your approach. Generally speaking it is a very elegant way.
But this will always return the latest post as body class. No matter on which page I go the body class is always the one of the most recent post. (even though I am viewing a post from an other category.)
So this approach is too ‘global’…
Is there no easier way to return the category of the current post? I mean the one that is on top.
Forum: Fixing WordPress
In reply to: Style depending on Categorythank you for your reply!
Maybe I have not stated clearly enough what I want to achieve.
is_category()
only works for category pages. Andis_single() && in_category()
only changes the single post style.But I want that my mainpage acquires the style of the most recent post (the one on top).
Here one example:
My mainpage displays the recent posts (like a standard blog) in reverse chronoligical order (newest top, oldest bottom). Like here:- Post A (Newest) [Cat: Banana]
- Post B [Cat: Strawberry]
- Post C [Cat: Strawberry]
I have different theme options for each category and I want the mainpage to have the theme of the most recent one – in this case Banana.
But somehow
in_category()
asks for the last post (the one on the bottom, the old one, in the example ‘Post C’) and the mainpage is displayed with the Strawberry theme.How can I ask for the most recent category (in the example: Banana)?
Thank you very much for your support.
Forum: Plugins
In reply to: [Geolocation] [Plugin: Geolocation] Is it time for an update?!+1
I also totally agree! We need an update with some small new features like the mashup-map. And also different location output styles would be nice (e.g. display the coordinates instead of the address)
I hope we will see some of these changes in the near future.
Cheers!