Forums

Blog ID conditional tag - Display custom content (4 posts)

  1. jumust
    Member
    Posted 1 year ago #

    Hi,
    I'm working on this site : http://thisweekin.net/southbay/, actually it's a sub-blog of the Multisite Network.
    I would like to display some links on the top of the site, but I want them to be different for each sub-blog.
    I'm playing with this functions:
    if ($current_site->blog_id == $wpdb->blogid)
    and after I should insert links and close the functions...
    but I don't know how to complete it. Is it on the right way?

    Thanks

  2. jumust
    Member
    Posted 1 year ago #

    Also will it be heavy code if I insert the functions for all 11/12 sub-blogs I have?

    Thanks

  3. jumust
    Member
    Posted 1 year ago #

    Or probably it's better to use a functions that call a custom file? So I would have: if it's Blog1 call file toplinks1.php..?!?

    Please let me know your thoughts

    Thanks

  4. jumust
    Member
    Posted 1 year ago #

    Just to be clear here are the links I want to customize for each sub siteclick here
    Right now I added them in the header.php

Topic Closed

This topic has been closed to new replies.

About this Topic