[wp-trac] [WordPress Trac] #10843: bloginfo('tag_url') and bloginfo('category_url')

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 2 08:36:21 UTC 2009


#10843: bloginfo('tag_url') and bloginfo('category_url')
---------------------------------------------------------------+------------
 Reporter:  prometh                                            |        Owner:         
     Type:  feature request                                    |       Status:  closed 
 Priority:  normal                                             |    Milestone:         
Component:  General                                            |      Version:  2.8.4  
 Severity:  normal                                             |   Resolution:  wontfix
 Keywords:  reporter-feedback bloginfo tag_base category_base  |  
---------------------------------------------------------------+------------
Changes (by dd32):

  * status:  new => closed
  * resolution:  => wontfix
  * milestone:  Unassigned =>


Comment:

 > Did you read what I said about assigning the posts_page to a static
 page?

 Probably skiped over it, Since its incorrect.

 When a static page is used for posts, The category and tag bases stay the
 same. if the blog is at /wordpress/blog/ category pages are
 /wordpress/category/some-cat/.

 This can be changed by the WordPress user on the Permalinks page by
 setting the category base to 'blog/category'

 That being said.. You shouldnt ever have to manually generate a category
 url.. You should always use the API to do it instead, The simple reason is
 to make it more portable between blogs using "Pretty Permalinks" and those
 using ?cat=something.

 {{{get_category_link($cat_id)}}} is the function to use (Make sure to
 check for a WP_Error return on that function though in the case that the
 category doesn't exist)


 I'm closing as wontfix due to the fact you shouldnt have to make the link
 directly, There being an API available, and your second point being moot.

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


More information about the wp-trac mailing list