-2
votes
1answer
456 views

Use ajax response in PHP function

Ok, so I'm working on a plugin and just ran into a problem. Here's what I'm doing: 1. Using a metabox with Plupload to upload an image to an upload dir in the plugin folder. 2. Upon upload success a ...
0
votes
2answers
483 views

external wordpress pages using wp-blog-header

I am setting up a few sections of a website external to the core wordpress installation, but I still want to use the built in wpdb functions, and/or header files from wordpress. I follow the ...
0
votes
1answer
58 views

DOCUMENT_ROOT from custom script inside theme [closed]

I am having problems getting document from a custom script inside the theme. It simple not including the domain part. Here is the current way I am using: $root = realpath($_SERVER["DOCUMENT_ROOT"]); ...
1
vote
1answer
567 views

wp_enqueue_style with style.php and Wordpress functions

I use wp_enqueue_style to add my stylesheet, like this: <?php wp_enqueue_style( 'theme-style', get_template_directory_uri() . '/style.php', false, '1.0', 'all' ); ?> It works fine BUT I need ...
1
vote
2answers
504 views

Initialize WordPress environment to use in a real cron script

I have to run a PHP script through real cron (WP cron being too unreliable). Within that script, I need $wpdb to insert data into WordPress table. But of course $wpdb will not be available as ...
-1
votes
2answers
2k views

Call to undefined function issue

I know there are other, maybe better ways to do what I want to achieve, but I have to use this solution. Alright, I have two stylesheet files: style.css - normal stylesheet style-dynamic.php - ...