How to add a Meta Description to the Custom Post Type Page in WordPress

custom post types

You’ve just created a new custom post type in WordPress, and now you’ve noticed the primary Custom Post Type (CPT) page is missing a meta description. No worries, we’ll show you how to fix this issue.

Typically, you would edit the page at the top of the screen, but that option is missing. 

No edit option
No edit option

The edit function is missing because this is an archive page. Archive pages, by default, do not have an edit feature.

CPT: Has Archive
Archive Setting in CPT

You can see the page difference by toggling the archive true/false under the Post Type Setting in CPT.

To add a meta description to the archive page, you will need to:

  1. Install Yoast Plugin

    Install Yoast Plugin (if not already installed)

  2. Navigate to the Yoast Settings

    Navigate to SEO (left sidebar in the backend or WordPress) >> Search appearance >> Content Types >> Find your CPT >> Scroll down to the archive settings tab.

  3. Add the Excerpt

    Next you will want to add the %%excerpt%% shortcode to the description field.

  4. Add Yoast’s shortcode

    (Optional) Add Yoast’s shortcode: %%page%% to the description to add the page number; if you have multiple archive pages.

Next, you will want to navigate to the archive page and confirm the fix. If I missed anything, please let me know in the comments below.

About the author
Isaac Adams-Hands

Isaac Adams-Hands is SEO Freelancer in Ottawa, where he helps clients plan marketing goals that are keyword-optimized and measurable.

He has worked at Microsoft, The institute of chartered accountants in Australia, Auto Trader, Le Cordon Bleu, and Algonquin College in various Digital Marketing Roles.

Isaac is qualified as a Full-stack developer, Server Administrator, and cyber security expert, adding additional experience to his Search Engine Optimization knowledge.

His Inuit heritage brought him to the Arctic to hunt and fish for most summers, which grew his passion for 4-wheelers and dirtbikes.