WPIntell

Source evidence

detect page class only

WP247 Body Classes · support · 2015-06-30T07:51:00+00:00

mixedsentiment
mediumseverity
0.67relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

2 / 19 rows with source links

10.5% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

17 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
bramroos resolved
Hi, This is the plugin that comes closed to what I would need. However, I would need it to detect the page Category and not the slug or ID. Is this possible? Many thanks! Bram https://wordpress.org/plugins/wp247-body-classes/ If I understand your question, you are saying that when showing a post, you would like to know which category or categories are assigned to the post? So, if WP247 Body Classes had classes something like: body.is-post-category-unknown or body.is-post-category-17 would that meet your need? These could actually conflict with posts named “Category Unknown” or “Category 17”. So I might need to use “postcategory” as the keyword instead of “post-category”. But, otherwise, I think this is doable and worth including if it meets your needs.

Comments

1 shown
wescleveland 2015-06-30T11:30:00+00:00

If I understand your question, you are saying that when showing a post, you would like to know which category or categories are assigned to the post? So, if WP247 Body Classes had classes something like: body.is-post-category-unknown or body.is-post-category-17 would that meet your need? These could actually conflict with posts named “Category Unknown” or “Category 17”. So I might need to use “postcategory” as the keyword instead of “post-category”. But, otherwise, I think this is doable and worth including if it meets your needs.