|
/ Documentation /Developers Documentation/ Show Meta Title and Description in Post Lists surerank_show_meta_in_admin_list

Show Meta Title and Description in Post Lists surerank_show_meta_in_admin_list

Hook: surerank_show_meta_in_admin_list

Description: The surerank_show_meta_in_admin_list filter shows each post’s SEO meta title and meta description in the WordPress post list, right below the SureRank SEO Checks badge. This makes it easy to review the meta of many posts at once without opening each one. It is off by default.

Source: inc/admin/seo-bar.php

Usage: Use this filter to turn on the meta title and meta description in the post lists of all post types, or only for the post types you choose. The filter receives two values: $show (true or false, default false) and $post_type (the post type of the list, for example post or page).

Note:

This filter is available in the free version of SureRank, version 1.11.0 or later.

Example: Show the Meta in All Post Lists

If you’re looking to show the meta title and description in every post list, add the code below.

add_filter( 'surerank_show_meta_in_admin_list', '__return_true' );

Example: Show the Meta Only for Pages

If you’re looking to show the meta only in the Pages list, add the code below. To use a different post type, replace page with that post type’s name, for example product.

add_filter( 'surerank_show_meta_in_admin_list', 'custom_show_meta_for_pages', 10, 2 );

function custom_show_meta_for_pages( $show, $post_type ) {
    return 'page' === $post_type ? true : $show;
}

You can add the example code to your child theme’s functions.php file or use a plugin like Code Snippets to safely insert custom code. Using a code snippet plugin is recommended for easier management and to ensure the code remains active even if you switch themes.

Expected Outcome

After you add the code, open a post list, for example Posts → All Posts in your WordPress dashboard. Each post now shows two new lines in the SEO Checks column, below the score badge.

  • Meta Title: the SEO title that search engines see for the post.
  • Meta Description: the SEO description that search engines see for the post.
  • Template (small tag next to the label): the value comes from your global title or description template, not one written for this post.
  • Missing: the post has no value for this field.

Long values are cut to two lines. Click the label to show the full text. The values are shown the way they appear in search results, with variables such as %title% already filled in.

Notes

  • The meta only shows when Page Level Checks is turned on in SureRank → Tools → Manage Features, because it appears inside the SEO Checks column.
  • It shows for public post types where SureRank is turned on, and only to users who can edit SureRank settings (administrators by default).
  • The filter changes only what you see in the dashboard post lists. It does not change anything on your website.
  • Category, tag, and user lists are not affected.

Related Docs

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Table of Contents
Scroll to Top