Skip to:
Content
Pages
Categories
Search
Top
Bottom

Blog description from a specific blog


  • Anonymous

    I know that:

    <?php bloginfo(‘description’); ?>

    Will insert the description for the current blog that I’m in, but lets say that I have another blog on my site called: “Cheese”

    I would like to insert the description for the “Cheese” blog, somewhere on my main blog.

    I’ve been meddling with the:

    bp_has_site_blogs

    function, but I haven’t had much luck (because the only types I can choose are “active”,”random” and “newest”)

    I wanted to change to type to a specific blog on the site.

    Any help would be much appreciated.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)

  • Xevo
    Participant

    @xevo


    Brajesh Singh
    Participant

    @sbrajesh

    if you know the blog id then you can use something of this kind

    say you want to get description for blog id having id 7

    <?php
    $blog_id=7;//or what ever
    $description=get_blog_option($blog_id,"blogdescription");
    echo $description;//show the description
    ?>

    Hope it helps


    Xevo
    Participant

    @xevo

    @ Brajesh: You could make it even smaller. :)

    echo get_blog_option(7,"blogdescription");

    Didn’t know it was possible like that, definately easier than my method.


    Anonymous

    Brajesh Singh, you are a life savor!

    Thank you as well Xevo, very quick replies. I really appreciate it.

    Closed


    Brajesh Singh
    Participant

    @sbrajesh

    @nickbwatson you are most welcome :)

    @Xevo I knew that, but I thought to emphasize better, so written a verbose copy :)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Blog description from a specific blog’ is closed to new replies.
Skip to toolbar