Re: [wp-testers] Priorities of the categories
On Wed, Jun 20, 2012 at 3:35 PM, Dispoweb2.0[Ghaith] dispo...@gmail.com wrote: It would be better if the CMS can offer the possibility to exclude a category from being used on the URL structure or give it a low priority. Something like this. There's a ticket for that: http://core.trac.wordpress.org/ticket/18752 ___ wp-testers mailing list wp-testers@lists.automattic.com http://lists.automattic.com/mailman/listinfo/wp-testers
Re: [wp-testers] Priorities of the categories
But it seems to have stalled. I don't have my trac login with me, can someone ask on trac for a status update? Please excuse any brevity: Sent from my iPhone On 20 Jun 2012, at 14:19, Sergey Biryukov sergeybiryukov...@gmail.com wrote: On Wed, Jun 20, 2012 at 3:35 PM, Dispoweb2.0[Ghaith] dispo...@gmail.com wrote: It would be better if the CMS can offer the possibility to exclude a category from being used on the URL structure or give it a low priority. Something like this. There's a ticket for that: http://core.trac.wordpress.org/ticket/18752 ___ wp-testers mailing list wp-testers@lists.automattic.com http://lists.automattic.com/mailman/listinfo/wp-testers ___ wp-testers mailing list wp-testers@lists.automattic.com http://lists.automattic.com/mailman/listinfo/wp-testers
Re: [wp-testers] Priorities of the categories
On Wed, Jun 20, 2012 at 9:19 AM, Sergey Biryukov sergeybiryukov...@gmail.com wrote: On Wed, Jun 20, 2012 at 3:35 PM, Dispoweb2.0[Ghaith] dispo...@gmail.com wrote: It would be better if the CMS can offer the possibility to exclude a category from being used on the URL structure or give it a low priority. Something like this. There's a ticket for that: http://core.trac.wordpress.org/ticket/18752 Even without this filter, this is seriously easy to do. For one project, Otto and I wrote a replacement for the categories metabox that, next to the checkboxes, also included a column of radio buttons. You could choose which category was the primary category for that post. We would then store the selected primary category in postmeta. Then we would filter on pre_post_link and replace %category% with the actual term name of the primary category. There are other filters too, like post_link and post_type_link. This can require duplicating a few lines of core logic depending on your goals, but point is, there's almost always a decent method to do something even if there isn't a dead-obvious filter. Nacin ___ wp-testers mailing list wp-testers@lists.automattic.com http://lists.automattic.com/mailman/listinfo/wp-testers
Re: [wp-testers] Priorities of the categories
Andrew - just to sanity check my understanding... Does using post meta cause an extra db hit? Andy. Please excuse any brevity: Sent from my iPhone On 20 Jun 2012, at 15:17, Andrew Nacin w...@andrewnacin.com wrote: On Wed, Jun 20, 2012 at 9:19 AM, Sergey Biryukov sergeybiryukov...@gmail.com wrote: On Wed, Jun 20, 2012 at 3:35 PM, Dispoweb2.0[Ghaith] dispo...@gmail.com wrote: It would be better if the CMS can offer the possibility to exclude a category from being used on the URL structure or give it a low priority. Something like this. There's a ticket for that: http://core.trac.wordpress.org/ticket/18752 Even without this filter, this is seriously easy to do. For one project, Otto and I wrote a replacement for the categories metabox that, next to the checkboxes, also included a column of radio buttons. You could choose which category was the primary category for that post. We would then store the selected primary category in postmeta. Then we would filter on pre_post_link and replace %category% with the actual term name of the primary category. There are other filters too, like post_link and post_type_link. This can require duplicating a few lines of core logic depending on your goals, but point is, there's almost always a decent method to do something even if there isn't a dead-obvious filter. Nacin ___ wp-testers mailing list wp-testers@lists.automattic.com http://lists.automattic.com/mailman/listinfo/wp-testers ___ wp-testers mailing list wp-testers@lists.automattic.com http://lists.automattic.com/mailman/listinfo/wp-testers
Re: [wp-testers] Priorities of the categories
On Wed, Jun 20, 2012 at 9:23 AM, Andrew Macaulay-Brook a...@theburo.net wrote: Andrew - just to sanity check my understanding... Does using post meta cause an extra db hit? Andy. When retrieving the information, no, because all postmeta is always pulled for a post during a normal query, unless you specifically tell the query not to do so. -Otto ___ wp-testers mailing list wp-testers@lists.automattic.com http://lists.automattic.com/mailman/listinfo/wp-testers