Permalink not pointing to users sublog
-
I have a community blog and the permalink is not pointint to their sub blog. Instead it is pointing to the main blog.
The code being used is:
$txt = str_replace('{title}', '<a href="' .get_blog_permalink($post["blog_id"], $post["id"]).'">'.$p->post_title.'</a>' , $txt); $txt = str_replace('{more}', '<a href="' .get_blog_permalink($post["blog_id"], $post["id"]).'">'.$wgt_mtext.'</a>' , $txt); $txt = str_replace('{title_txt}', $p->post_title , $txt); $txt = str_replace('{date}', date_i18n($wgt_dt, strtotime($p->post_date)), $txt); $txt = str_replace('{excerpt}', $ex , $txt); $txt = str_replace('{author}', get_userdata($p->post_author)->nickname, $txt); $txt = str_replace('{avatar}', $av , $txt); $txt = str_replace('{blog}', get_blog_option($post["blog_id"], 'blogname') , $txt);
Example:
sublog.mainblog.com/posttodayis going to mainblog.com/posttoday
When clicked there is no content, because there is no such post on the mainblog.
Thanks in advance.
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘Permalink not pointing to users sublog’ is closed to new replies.