[wp-trac] [WordPress Trac] #13156: Permalinks problem with 4-digits ID

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 27 20:50:02 UTC 2010


#13156: Permalinks problem with 4-digits ID
--------------------------+-------------------------------------------------
 Reporter:  sashobg       |       Owner:  ryan      
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:            
Component:  Permalinks    |     Version:  2.9.2     
 Severity:  normal        |    Keywords:  permalinks
--------------------------+-------------------------------------------------

Comment(by sashobg):

 Replying to [comment:2 sashobg]:
 > Replying to [comment:1 nacin]:
 > > WP realistically has no way of identifying that what it thinks is a
 year was actually once a post ID.
 > >
 > > You'd have to hook in real early and perform the redirection or set
 the query vars yourself.
 >
 > Hi nacin, thanks for the reply. As I'm getting no reply in the forum,
 could you please just give me an example - how could I "hook in  real
 early" (I guess I should set the redirection command in a given Wordpress
 file), and what do you mean by "setting the query vars myself" - as I'm
 using the panel to set the permalinks, but to no result.
 >
 > Could you just please give me example - which file would I have to edit?

 And one more thing - if I use the structure /%postname%/%post_id%/ - it
 works, but then I get 404 on pages (not posts), which are usually
 www.domain.com/anything-here ?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13156#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list