[wp-trac] [WordPress Trac] #15435: Network blog query returns wrong permalinks

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 15 16:40:11 UTC 2010


#15435: Network blog query returns wrong permalinks
--------------------------+-------------------------------------------------
 Reporter:  developdaly   |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Permalinks    |     Version:  3.1            
 Severity:  normal        |    Keywords:                 
--------------------------+-------------------------------------------------
 When querying for posts on network blogs (i.e. a loop for all posts on all
 network blogs) the permalink of a post is relative to the current site (or
 top site -- not sure).

 The following returns http://xyz.example.com/%post_name% for all posts, no
 matter what their subdomain is.

 So a post usually found at http://abc.example.com/hello-world/ outputs as
 http://xyz.example.com/hello-world/

 {{{
 query_posts( 'blogid='. $blogid );
 while (have_posts()) : the_post();
 echo get_permalink();
 endwhile;
 }}}

 All other post data is intact. The titles, categories, etc. all match the
 post. Only the permalink is incorrect.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15435>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list