WordPress.org

Codex

WPMU Functions/get blog permalink

Contents

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 );
?>