Title: Display list heading
Last modified: February 8, 2021

---

# Display list heading

 *  Resolved [Mr Lucky](https://wordpress.org/support/users/voodoochill/)
 * (@voodoochill)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/display-list-heading/)
 * I have created a list of posts with the tag:hot
 * How can I display a heading for the list that either shows the tag name, or a
   heading I define within the shortcode?
 * I’m aware I can just create a text heading above the list, but I have given the
   list a class so I can make it appear within a box, and I would like the heading
   to n=be inside the box rather than above it.
 * Example is at the link above. The h2 heading (Hot Topics at..) is the one I would
   like to appear withing the div not above it..
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdisplay-list-heading%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [zymeth25](https://wordpress.org/support/users/zymeth25/)
 * (@zymeth25)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/display-list-heading/#post-14035812)
 * You can solve it by putting the entire list inside a div and adding the class
   to that div, not the shortcode. This way everything that the LCP plugin generates
   will appear inside that container. You can do it either by simply enclosing the
   shortcode within a div in a text editor **or** by using a [custom template](https://github.com/picandocodigo/List-Category-Posts/wiki/Template-System).
    -  This reply was modified 5 years, 4 months ago by [zymeth25](https://wordpress.org/support/users/zymeth25/).
    -  This reply was modified 5 years, 4 months ago by [zymeth25](https://wordpress.org/support/users/zymeth25/).
 *  Thread Starter [Mr Lucky](https://wordpress.org/support/users/voodoochill/)
 * (@voodoochill)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/display-list-heading/#post-14036556)
 * Thanks, I thought that might be the only way to do it.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Display list heading’ is closed to new replies.

 * ![](https://ps.w.org/list-category-posts/assets/icon-256x256.png?rev=2517221)
 * [List category posts](https://wordpress.org/plugins/list-category-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/list-category-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/list-category-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/list-category-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/list-category-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/list-category-posts/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Mr Lucky](https://wordpress.org/support/users/voodoochill/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/display-list-heading/#post-14036556)
 * Status: resolved