Forums

[resolved] How do you get mage paths to folders outside the wordpress folder to work? (2 posts)

  1. kirstyjay
    Member
    Posted 1 year ago #

    My wordpress folder is in a password protected area, as it's a private blog, however I have a public part of my site too that has images in it that I want to use in the members area too.

    So... site structure is this :

    site
    site/images/image.jpg
    site/blog/blogpage

    The blog folder is protected.

    On my blogpage I want to put a gallery of the images in the images folder that is outside the blog folder.

    I have a php code plugin that works a treat, the only problem is that the images don't display, even though the folder is being found!

    After a lot of searching, I know that this is something to do with the way wordpress rewrites the path, so how do I get around this problem?

    I have tried using the root path, the web root and a relative path and although the folder is fiund and the path to the images is correct, they will not show. I just get the broken image.

    I have tried
    home/sitename/public_html/images/
    /home/sitename/public_html/images/
    ../images/
    http://www.sitename.com/images/
    and pretty much every other possible path, but will they show? Will they hell!

    HELP PLEASE!!!!

  2. kirstyjay
    Member
    Posted 1 year ago #

    after setting the path in the code, I then had to add an extra ../ to the image source to make it work... but it now does!

Topic Closed

This topic has been closed to new replies.

About this Topic