[wp-trac] Re: [WordPress Trac] #4358: Allow users to specify
"primary" category
WordPress Trac
wp-trac at lists.automattic.com
Fri Aug 17 19:17:55 GMT 2007
#4358: Allow users to specify "primary" category
----------------------------+-----------------------------------------------
Reporter: markjaquith | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.4 (future)
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: |
----------------------------+-----------------------------------------------
Comment (by nickgeorgakis):
This might not be the right place to add this ''(Feel free to delete this
post if inappropriate)'' but I have developed a custom plugin to do just
that - specify a custom primary category that is used to generate the
permalinks
[http://www.ngtech.gr/blog/en/my-wordpress-plugins/ng-primary-category-
wordpress-plugin / NG Primary Category Plugin]
Currently I have to modify the categories checkboxes through PHP output
buffering using preg_replace - maybe a new WordPress hook would make it
easier.
By adding the primary category ID in post meta data no Database changes
are required.
I had to copy parts of Wordpress
\wp-includes\link-template.php: function get_permalink() in my plugin
Couldn't be possible to implement something similar in a future WP
version?
Any suggestions are welcomed!
--
Ticket URL: <http://trac.wordpress.org/ticket/4358#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list