![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Aug 2002
Location: USA
Posts: 6,721
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: May 2010
Location: USA
Posts: 1,243
|
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...
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Aug 2002
Location: USA
Posts: 6,721
|
Nevermind, it was a cache plugin. Not really sure why that would affect a page outside of wordpress but whatever.
__________________
icq 156131086 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Aug 2002
Location: USA
Posts: 6,721
|
Hmm, how could I allow wordpress content which is password protected with htaccess to be pulled to this non wordpress page?
__________________
icq 156131086 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Aug 2002
Location: USA
Posts: 6,721
|
Ok figured that out. I can just allow the server ip in htaccess.
__________________
icq 156131086 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Aug 2002
Location: USA
Posts: 6,721
|
Laugh all you want but pulling featured images from the members area gave me login prompts until I allowed the server ip.
__________________
icq 156131086 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Industry Role:
Join Date: May 2010
Location: USA
Posts: 1,243
|
Yeah, you'd be able to run the function but not access those images without the IP exception.
|
![]() |
![]() ![]() ![]() ![]() ![]() |