PHP - Wordpress question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BSleazy
    Confirmed User
    • Aug 2002
    • 6721

    #1

    PHP - Wordpress question

    I'm banging my head on the wall trying to figure out what I'm missing.

    I'm trying to use some wordpress functions on a non-wordpress page. I've tested this on my own server and it works fine but it's not working on someone elses.

    I'm using this <?php include 'members/wp-load.php'; ?> and any changes I make to the html or anything after that line is not working or showing. Even if I delete sections of the page it still shows up in browsers like the original page is being stored and served from somewhere. I just don't get it.
    icq 156131086
  • deltav
    Confirmed User
    • May 2010
    • 1243

    #2
    IIRC there are/were some notes at the end of wp-load.php, something about a file needing to be manually created? Not sure if they're germane to your issue or even still in the most current version, but might be worth taking a peek. Sorry, can't easily check any installations where I'm at...
    *********
    DeltaofVenus.com - Vintage Erotica from the 1800s through 1979

    Comment

    • BSleazy
      Confirmed User
      • Aug 2002
      • 6721

      #3
      Nevermind, it was a cache plugin. Not really sure why that would affect a page outside of wordpress but whatever.
      icq 156131086

      Comment

      • BSleazy
        Confirmed User
        • Aug 2002
        • 6721

        #4
        Hmm, how could I allow wordpress content which is password protected with htaccess to be pulled to this non wordpress page?
        icq 156131086

        Comment

        • BSleazy
          Confirmed User
          • Aug 2002
          • 6721

          #5
          Ok figured that out. I can just allow the server ip in htaccess.
          icq 156131086

          Comment

          • Zeiss
            Confirmed User
            • May 2012
            • 5189

            #6
            Originally posted by BSleazy
            Hmm, how could I allow wordpress content which is password protected with htaccess to be pulled to this non wordpress page?
            php's include() function is not bound by apache's .htaccess


            Adult Webmasters Guides

            Comment

            • BSleazy
              Confirmed User
              • Aug 2002
              • 6721

              #7
              Originally posted by Zealotry
              php's include() function is not bound by apache's .htaccess
              Laugh all you want but pulling featured images from the members area gave me login prompts until I allowed the server ip.
              icq 156131086

              Comment

              • deltav
                Confirmed User
                • May 2010
                • 1243

                #8
                Yeah, you'd be able to run the function but not access those images without the IP exception.
                *********
                DeltaofVenus.com - Vintage Erotica from the 1800s through 1979

                Comment

                Working...