The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
31 views

How to avoid wp-load.php within a PHP/CSS file?

This is tricky, as people usually mix wp-load with AJAX and I can't really find a proper answer. Case 1 I have a dynamic style.php file that looks like this: <?php header("Content-type: ...
0
votes
1answer
62 views

Get Core Functionality from Within a (Secondary) Plugin File

I have a plugin with the following structure: myplugin.php includes/authentication.php I can access core WordPress functionality inside myplugin.php fine, but when I try to access stuff such as ...
0
votes
0answers
19 views

Get wp-load.php PATH with wp_localize_script and JavaScript for plugin

I just learned about wp_localize_script() and it's very cool. I read Otto's post and Gary Cao's post, but I'm learning Ajax so I'm trying to wrap my head around getting the path to wp-load.php this ...
0
votes
0answers
36 views

Using htaccess and php to protect file, MIME problem

I'm using the method described here: Protecting WordPress Media Uploads Unless User Is Logged In (Based off of How to Protect Uploads, if User is not Logged In?. The redirect is working perfectly, ...
0
votes
0answers
55 views

Why I have this error when I try to install this old blog on my local webserver?

I am pretty new to WP (I came from Joomla) and I am finding some difficulties trying to put on my local web server an old backup of a website (made using WP 3.5) I have performed the following ...
0
votes
0answers
55 views

Including wp-load.php redirects the whole site to wp-admin/install.php

I want to give access of pages for a site that is not actually in wordpress. Client already have the wordpress website. I know that if i include the wp-load.php file outside from wordpress then i can ...
0
votes
0answers
34 views

get_post_meta() not loaded with wp-load

I am executing this code in my external php file (= I am accessing his externaly without loading the full WP; I have a reason why I am doing it) that is located here: ...
0
votes
0answers
95 views

To call hook on a php external file

I can't to call the a filter hook on a php external file of wordpress. This is my code - my_external_file.php -: <?php require( dirname(__FILE__) . '/../../../../../../../wp-load.php'); ...
0
votes
0answers
98 views

Load loop in external php file, ajax loading posts

Why does my loop always return "no posts" ? I've included all necessary files it seems. I'd like to use this page for ajax calls, but I cannot get it to work as a normal loop. If I use get_posts it ...
0
votes
0answers
35 views

Go-Script get_option without theme

i use a go-script into my plugin for redirecting users and needs into this script access to the plugin options. The Script looks like this: <?php define('DOING_AJAX', true); ...