WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 6 years ago

#5062 closed enhancement (wontfix)

Adding Tags to Pages

Reported by: thee17 Owned by:
Milestone: Priority: low
Severity: trivial Version: 2.3
Component: Administration Keywords:
Focuses: Cc:

Description

On Line 152 of page wp-admin/edit-page-form.php if you add

<fieldset id="tagdiv">
	<legend><?php _e('Tags (separate multiple tags with commas: cats, pet food, dogs)'); ?></legend>
	<div><input type="text" name="tags_input" class="tags-input" id="tags-input" size="30" tabindex="3" value="<?php echo get_tags_to_edit( $post_ID ); ?>" /></div>
</fieldset>

Then you can add tagging to pages, as this problem was discribed on the wp-testers mailing list on Sept 23rd

Change History (10)

comment:1 Viper007Bond7 years ago

-1

Pages aren't posts. They don't get categories and they shouldn't get tags either IMO.

comment:2 Viper007Bond7 years ago

  • Type changed from defect to enhancement

comment:3 JeremyVisser7 years ago

Highly agree with Viper: Pages aren't posts. Pages are categorised/given context by their hierarchy within the page tree, not by categories or tags.

I say wontfix.

comment:4 zamoose7 years ago

Categorization and metadata are two different things. I view tags as the latter, and thus I definitely see utility in allowing for tagging of pages.

+1 from me.

comment:5 follow-up: Otto427 years ago

-1 to adding this to core.

+1 to somebody creating a plugin and seeing how well it takes off. Would be easy enough, just hook onto the edit_page_form action hook.

comment:6 in reply to: ↑ 5 ; follow-up: michelem7 years ago

Replying to Otto42:

+1 to somebody creating a plugin and seeing how well it takes off. Would be easy enough, just hook onto the edit_page_form action hook.

I created the plugin: http://www.michelem.org/wordpress-plugin-tags4page/

comment:7 in reply to: ↑ 6 ; follow-up: jonerikstorm7 years ago

Replying to michelem:

Replying to Otto42:

+1 to somebody creating a plugin and seeing how well it takes off. Would be easy enough, just hook onto the edit_page_form action hook.

I created the plugin: http://www.michelem.org/wordpress-plugin-tags4page/

You made a plugin that adds the PHP code above, more or less, but it doesn't restore the old tag functionality for the pages.

You can tag them now, but so far as I can tell, they don't do anything. If you go to http://foo.com/?tag=bar and page is tagged as bar, it does not show up.

If I get around to my own code for that first I'll post it.

comment:8 in reply to: ↑ 7 michelem7 years ago

Replying to jonerikstorm:

You can tag them now, but so far as I can tell, they don't do anything. If you go to http://foo.com/?tag=bar and page is tagged as bar, it does not show up.

Otto42 you are right, I missed a hook to intercept the query and replace it to display both type of record (post and page). Now I fixed it and it works fine. Thank you for the notice.

comment:9 spencerp6 years ago

I agree with Viper, Otto42, and JeremyVisser above there. It(Tags on pages) should be an optional (plugin) thing, not made (in core) by default in WordPress releases.

comment:10 lloydbudd6 years ago

  • Milestone 2.4 deleted
  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.