A
by Aaron T. Grogg 5 (1 reviews)

Add Custom Post Type Slugs to Admin Body Class

Add Custom Post Type Slugs to Admin <body> Class

Add Custom Post Type Slugs to Admin Body Class ranks #43,845 among WordPress.org plugins with 10+ active installations, a 5/5 rating from 1 reviews, and was last updated May 15, 2015. Data from WordPress.org, refreshed twice daily — see methodology.

Tested up to WP 4.2 (Current: 7.1.2)
v1.3 Current Version v1.3
Updated 11 years ago Last Update on 15 May, 2015
Refreshed 15 hours ago Last Refreshed on
Top 50% by installs No update in over a year
View on WordPress.org
Rank
#43,845
No change
Active Installs
10+
-9.1%
KW Avg Position
N/A
No change
Downloads
2.7K
+4 today
Support Resolved
0%
No change
Rating
100%
Review 5 out of 5
5 (1 reviews)

Next Milestone 20

Total Progress 10%
10+ 20+
30,583
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro

Unlock Exact Install Count

See the precise estimated active installs for this plugin, calculated from real-time ranking data.

  • Exact install estimates within tiers
  • Track install growth over time
  • Milestone progress predictions
Upgrade to Pro
Need 9 more installs to reach 20+

Rank Changes

35,677 38,747 41,817 44,887 47,957 17-09-2026 18-09-2026 19-09-2026 20-09-2026 21-09-2026 22-09-2026 23-09-2026 24-09-2026
33,654 37,296 40,938 44,579 48,221 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026 16-09-2026 17-09-2026 18-09-2026 19-09-2026 20-09-2026 21-09-2026 22-09-2026 23-09-2026 24-09-2026
Current #43,845
Change
Best #

Upgrade to Pro

Unlock 30-day and 90-day rank history charts with a Pro subscription.

Upgrade Now

Active Installs Growth

Active Installs 0,000,000+
Growth +0.0%
Peak 0,000,000

Downloads Growth

0 10 17-09-2026 18-09-2026 19-09-2026 20-09-2026 21-09-2026 22-09-2026 23-09-2026 24-09-2026
0 10 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026 16-09-2026 17-09-2026 18-09-2026 19-09-2026 20-09-2026 21-09-2026 22-09-2026 23-09-2026 24-09-2026
Downloads
Growth
Peak

Upgrade to Pro

Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.

Upgrade Now

Reviews & Ratings

5.0
1 reviews
Overall 100%
5
1 (100%)
4
0 (0%)
3
0 (0%)
2
0 (0%)
1
0 (0%)

Track This Plugin

Get detailed analytics, keyword tracking, and position alerts delivered to your inbox.

Start Tracking Free

Plugin Details

Version
1.3
Last Updated
May 15, 2015
Requires WP
3.1+
Tested Up To
4.2
PHP Version
N/A
Author
Aaron T. Grogg

Support & Rating

Rating
★ ★ ★ ★ ★ 5
Reviews
1
Support Threads
0
Resolved
0%

Keywords

Upgrade to Pro

Unlock keyword rankings, search positions, and detailed analytics with a Pro subscription.

Upgrade Now

Frequently Asked Questions

Common questions about Add Custom Post Type Slugs to Admin Body Class

Additional CSS classes are added to the HTML body tag when certain pages load in Admin mode
If you are in WP Admin, if you click Posts, you will see a list of all your Posts, and the CSS class edit-list-post
and the CSS class edit-page-post will be added to the HTML body tag. Note the difference between the two: edit-list-post vs. edit-page-post, list vs. page Similarly, if you click Pages, the same thing as above will happen, except the word post will be replaced with the word page in each of the CSS classes. Futher, if you have custom post types, the word post will be replaced with whatever your custom post type is, so a custom post type called "Movies" will results in the following CSS classes being added: edit-list-movie vs. edit-page-movie
Really only if you used some custom CSS or JS in your WP Admin. You could color the List or Edit headers or backgrounds differently, add custom validation to some fields, etc. Maybe when you are viewing the list of Posts, you want to see red column and field headers, blue when viewing Pages, and green when viewing Movies, and for the Movies Edit page, you have a custom field that you want to validate as some specific format, like a date or number, you could add custom JS just for that page, all based on these new classes on the HTML body tag.

Sign In / Register

You need to sign in or register to use this feature.