Tags for Pages

0

Hi Guys,

I apologise if I have missed another topic similar to this…but I have done quite a bit of searching and looking and have not found anything.

Is there anything on the drawing-board that will allow Pages to Tagged (like Posts can be natively)?

I’ve seen a couple of plugins on WordPress.org and other places (e.g. Shiba WordPress)</e>, but I’m reluctant to mess with code in ‘functions.php’ and call me spoiled, but I just trust your plugins more. In fact, I think I only use a couple of plugins that aren’t yours. I would like to keep it that way. :slight_smile:

Anyway, if you have had inquiries/suggestions on this topic, just add me to the list of folks that would find it useful.

Cheers

Stephen G

  • Tammie
    • WordPress Wizard

    @train4lifewpmu: You know I’m not aware of such a plugin myself and one isn’t planned. I’ll let people know and leave this topic open as if enough request it may be something we can look into. You may want to have a look at custom post types but not sure if that will deliver. Thank you for wanting to stick with our plugins though it’s appreciated and we will look at this if enough users request.

  • drmike
    • DEV MAN’s Mascot

    Gotta admit that I’m old school: Pages don’t get tags or categories. I don;t think I have a single install that does that.

    Some google’ing doesn’t pull up anything recent that says it;s updated for 3.0. A quick scan of the wp.org shows stuff up to 2.5.

    Hmmmm…..

  • train4lifewpmu
    • Design Lord, Child of Thor

    @Tammy:

    Thanks Tammy…can’t ask for more than that. :slight_smile:

    In case it helps:

    I’m using WordPress 3.01 and BuddyPress 1.2.5.2 along with your excellent BP Scholar 3.1 Template. This has all worked very well.

    The reason I’m interested in tagging pages is that we are developing some ‘e-Learning’ where we will be publishing entire courses. For our purposes this is best accommodated by pages where the structure of the drop-down menus in the top-nave-bar works well for easy access and simple organisation.

    I also use the Global Tags Plugin. It would be helpful to include the Tags and Categories for pages so that our Course pages appear in the results of Tag and Category searches across the site (i.e. from multiple blogs).

    I haven’t considered the custom posts and appreciate the tip. However, I imagine that there would need to be some considerable customising required to get specific nested posts to behave like pages.

    @drmike:

    Thanks for your input :slight_smile:. My ‘googlings’ concur with yours. e.g. from the WordPress website I found ‘Simple Tags’ and another one called ‘Category Tagging’, which are interesting but neither seem to fit the bill.

    Ideally, I would be able to tag pages in multiple blogs and have the tags appear in the Global Tags Pages and results. Also that Page Categories would be produced in Category lists/results….again, ideally this would have an option to operate Globally across the site and multiple blogs. It’s a big ask I know, but I reckon such a function would likely have some SEO benefits as well?

    Anyway, I’m happy to wait and see…it’s not a ‘life and death’ issue and we have a long way to go on the project.

    Thanks again to both of you for your assistaince.

    Cheers

    Stephen G

  • Barry
    • DEV MAN’s Mascot

    If you add the following to your functions.php (or create a php file and place it in mu-plugins with the following, it should add the meta column for them):

    function create_mycustom_taxonomies() {
    register_taxonomy( 'post_tag', 'page', array(
    'hierarchical' => false,
    'update_count_callback' => '_update_post_term_count',
    'query_var' => false,
    'rewrite' => false,
    'public' => true,
    'show_ui' => true,
    '_builtin' => true,
    ) );
    }
    add_action( 'init', 'create_mycustom_taxonomies', 0 );

    Note: remember to surround the above with php tags.

  • Ovidiu
    • Code Wrangler

    There are a couple of plugins that add tags for pages. If you want I’ll make a list of them.

    Besides even some plugins that deal with custom psot types and custom taxonomies can modify the existing wordpress structures (i.e. pages and tags) and connect tags with pages :slight_smile:

    P.S. This was a hint for you guys working on CUSTOMPRESS :grinning:

  • train4lifewpmu
    • Design Lord, Child of Thor

    @Barry,

    Many thanks Barry. Not being a programmer, that is something I can work with…I’ll give it a whirl :slight_smile:

    @Ovidiu

    And many thanks to you too :slight_smile:. I would be interested to see the list of plugins, thanks.

    Overall my concern is the effect that plugins and mods will have on the complexities of the WordPress/BuddyPress setup…that’s why I like the WPMU tested plugins. As a web administrator and a ‘one-man’ show, though I can follow advice of suggestions such as Barry kindly provided, as I said, I’m not a programmer. My priority is to keep the site running. I admit to being perhaps more cautious than others more knowledgeable when it comes to mods.

    Thanks again for your great assistance guys…

    Cheers

    Stephen G

  • train4lifewpmu
    • Design Lord, Child of Thor

    @Barry

    I gave that bit of code a go Barry (I made a separate ‘.php’ page and popped it in ‘/mu-plugins’:wink:, and it’s a great starting point. First of all it didn’t break anything :stuck_out_tongue:

    It did everything you said it would.

    I hardly expect anyone to just throw up the plugin of my dreams first time and gratis. But this one is definitely heading in the right direction.

    It allowed to me insert tags in pages across the site (i.e. across all blogs)…and it looked and worked like it was WordPress native. It even placed the new tags in both the individual site tag clouds and the Global Site Tags.

    However, when the new tags are clicked, they return ‘No Posts Found’.

    And I know I’m asking a lot here, as non-programmers’ usually do, but it would be good if the tags would appear on the published pages, like in posts.

    I don’t know how to address these progressions but if there is to be a great plugin that allows tags in pages (and site-wide to boot), this has got to be a great beginning. Many thanks Barry…I do hope that you are inclined to pursue this idea further.

    Cheers

    Stephen G

  • Ovidiu
    • Code Wrangler

    I answered ages ago but then my internet died for about 2h :slight_frown: jsut noticed my comment didn’t go through.

    you found simple tags already the other one I know of right now is: http://www.dev4press.com/plugins/gd-taxonomies-tools/features/ but that is a paid plugin. The feature isn’t listed but I know its there as the author told me.

    BUT I do honestly believe this functionality belongs into a custom post/taxonomy plugin as all it does (as does barry’s code) is “connect” a taxonomy, in this case tags, with a certain post type, in this case: pages. Most custom post type plugins allow you to connect new and existing taxonomies with new and existing post types.

    regarding:

    And I know I’m asking a lot here, as non-programmers’ usually do, but it would be good if the tags would appear on the published pages, like in posts.

    I don’t think that can be globally handled as every theme needs to be edited and enhanced with a piece of code that display tags. Since all themes are different I don’t think it can be achieved with a hook though..