Perhaps one of the vital least used purposes in all of WordPress is the Class Description.
Lots of you’ll be pronouncing, “The what?”
Even though it won’t sound acquainted, you’ve most certainly observed the sphere for the class description numerous instances. It’s that field that the majority people skip over once we’re putting in or modifying our classes.
In the event you fill that field in, on the other hand, you’ll be able to then show what’s written in it with the next piece of code (supplied your theme doesn’t already use the class description serve as, as many don’t). Simply put this on your theme anywhere you’d like – as an example, on the best of your class template (generally class.php or archive.php).
Right here’s a handy guide a rough instance. I stuffed out my class description box after which I positioned the code above in my archive.php record.
The usage of HTML in Your Class Description
Through default you can not use HTML on your class description box. On the other hand, there’s a workaround for that. Merely put the next on your purposes.php record after the outlet php. (Appearance > Editor > Theme Purposes – purposes.php)
While you’ve performed that, you’ll be able to insert no matter HTML you prefer on your description field. Right here’s an instance of a headline, a picture, and wrapped textual content on the best of a class web page.
Why Use a Class Description
No longer everybody will want or need a class description, but it surely could possibly enliven your web site (particularly for those who use HTML), give your customers helpful data, and naturally, it’ll even assist out the search engine optimization of your class pages.WordPress Developers