Adelle theme add "posted in [Category]" to posts
-
Hi folks,
I am using the Adelle theme for my blog and saw in the demo, that the overview of the post shows a line “posted in” followed by the category. I was wondering, why this feature is missing when applying the theme to my blog. I also purchased the customization feature and would be grateful for any help!
Thank you. :-)
The blog I need help with is: (visible only to logged in users)
-
Hi there,
The reason this happens is because Adelle theme only shows the “Posted in” part if you have more than 1 categories in your site. If you only have 1 category, that part is omitted.
For reference (and those interested), the part that deals with this is in /inc/template-tags.php in the theme’s files:
https://wpcom-themes.svn.automattic.com/adelle/inc/template-tags.php
Specifically, function adelle_post_meta() is used to display the category. In it, it calls this part to determine whether to show categories or not:
if ( $categories_list && adelle_categorized_blog() ) :adelle_categorized_blog is a function that exists later in the file, which purpose is to “return true if a blog has more than 1 category”.
- The topic ‘Adelle theme add "posted in [Category]" to posts’ is closed to new replies.