The MU forums have moved to WordPress.org

targeting a url in php include () (1 post)

  1. vectyr
    Member
    Posted 14 years ago #

    I'm trying to create this path for each subsequent blog on my MU installation so that it links to 'gallery.php'. The real path would be something like: wp-content/blogs.dr/1/files/gallery/gallery.php

    But I would like every blog to have their own separate gallery.php file. So I put the folder 'gallery' and 'gallery.php' in each blog. On the main template I want to have something like this:

    <?php include('bloginfo("url")'.'/gallery/gallery.php'); ?>

    That will generate something like this:

    http://www.mywebsite.com/gallery/gallery.php

    For each blog. My brain is just fried today.

About this Topic

  • Started 14 years ago by vectyr