Support » Plugin: WP247 Body Classes » detect page class only

Viewing 1 replies (of 1 total)
  • Plugin Author wescleveland

    (@wescleveland)

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘detect page class only’ is closed to new replies.