WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

WPMU Functions/get blog permalink

Description

Returns the permalink of a specific blog post.

Parameters

$blog_id
(integer) (required) ID of the blog the specific post belongs to.
Default: None
$post_id
(integer) (required) ID of the specific post (within the blog refered to by $blog_id)
Default: None

Return Values

(string) 
The permalink of the specified blog post.

Usage

<?php get_blog_permalink($blog_id$post_id) ; ?>

Examples

<?php
$blog_id 
1;
$post_id 1;
echo 
'To access post '.$post_id.' in blog '.$blog_id.' use the address '.get_blog_permalink$blog_id$post_id );
?>