Join

Unlock the Ability to Add Tags to Pages

Don't want to mess with code snippets? Request for this to be a feature of MyListing Pro.

Instructions

  1. Create a new PHP code snippet.
  2. Copy the contents of code snippet below.
  3. Paste the contents into your code snippet.
  4. Review any notes that I’ve provided.
  5. Save and enable the code snippet.
  6. Test.

Snippet

You will notice the following features after adding this code snippet to your website.

  • Adds a Tags field to the WordPress Page editor.
  • Adds a Tags column to the WordPress Pages list.
function my_allow_page_tags()
{
    register_taxonomy_for_object_type("post_tag", "page");
}
add_action("init", "my_allow_page_tags");