The Advanced Levels Page Add On includes several hooks to add unique content before and after the level information. In this recipe, we demonstrate how to use these hooks to integrate the Member Badges Add On with your levels page.

Keep reading to learn how to display the badge associated with each level in the output of your membership levels page.

Banner image for Enhance Your Membership Levels Page with Member Badges

Two Ways to Add Member Badges to Your Membership Levels Page

These code recipes offer two different layout options—a column-style layout and a table-style layout—allowing you to choose the one that best suits your site’s design.

Code Recipe #1: Column-Style Layout

This recipe shows you how to display a member badge within the three-column layout of your membership levels page. When using the Advanced Levels Page Shortcode Add On, this method inserts the badge directly before the level information using the pmproal_before_level hook.

Example membership levels page with three columns showing the level badges
Example membership levels page with three columns showing the level badges

Code Recipe #2: Table-Style Layout

This recipe is designed for those using the table layout option on their membership levels page. It adds a “Badge” column to the table, displaying each level’s associated member badge in a new column, right next to the other level details, using the pmproal_extra_cols_before_body hook. This approach keeps the design clean and organized while highlighting the member badges.

Membership Badges on a Table Layout
Membership Badges on a Table Layout

Adding the Recipe to Your Website

You can add this recipe to your site by creating a custom plugin or using the Code Snippets plugin available for free in the WordPress repository. Read this companion article for step-by-step directions on either method.

Free Course: Membership Site Development—The Basics

Develop a deeper understanding of membership site development in this beginner-level course. Learn how to make your site work better, save yourself time and money, and improve your site's performance.

Featured Image for Membership Site Development Course: The Basics
Was this article helpful?
YesNo