• HI: when I check the admin screen. the “post” you can add tag.
    but for “page”, there is no place to add tags.

    I think they disabled this screen. SO it is not visible now.

    can anyone tell me how to enable this screen, make it visible so I can add tags for pages and other pages like staff?

    either from setting or from coding
    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Tags are not usually available for pages by default. You can do this however by editing your functions.php file in your theme or with a plugin. Have a look at this one and see if it works for you – http://wordpress.org/extend/plugins/tagpages/

    Thread Starter je_123_au

    (@je_123_au)

    THANKS christine.

    I prefer to edit function.php, would you mind to give me idea where the coding is and how to do that.

    I see in SEO, they have “title tags”, is this one can use as search function also? like query_post(tag=’blah blah’);

    Have a look at this thread and see if this helps:
    http://wordpress.org/support/topic/tags-for-pages-2?replies=20

    Thread Starter je_123_au

    (@je_123_au)

    Thanks Chris.

    I did add to my mytheme/functions.php and
    save it, but when I open wp admin panel, it is as same as before.
    page still do not have extra stuff to do?

    thanks so much for your help

    Do I have extra staff to do after change functions.php

    // Make the metabox appear on the page editing screen
    function tags_for_pages() {
    	register_taxonomy_for_object_type('post_tag', 'page');
    }
    add_action('init', 'tags_for_pages');
    
    // When displaying a tag archive, also show pages
    function tags_archives($wp_query) {
    	if ( $wp_query->get('tag') )
    		$wp_query->set('post_type', 'any');
    }
    add_action('pre_get_posts', 'tags_archives');
    Thread Starter je_123_au

    (@je_123_au)

    Thanks, I test on other site, it is working.
    this site also use wordpress 3.4, strange things.

    anyway I changed to category instead of tag, and make the site works.

    If anyone know why the strange thing happen in different site, pls post here.

    You can enable tags and categories for wordpress pages with this in your theme’s functions.php:

    function my_taxonomies() {
        register_taxonomy_for_object_type('category', 'page');
        register_taxonomy_for_object_type('post_tag', 'page');
    }
    add_action('init', 'my_taxonomies');

    However, if you edit the theme’s files, your edits will be lost when you update the theme. You should use a child theme for this.

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

The topic ‘Enable tags screen for pages’ is closed to new replies.