The wp-blog-header.php tag has no wiki summary.
3
votes
2answers
476 views
Creating a Dynamic Path to wp-blog-header.php
Created a class in an external script which is dependent on the Wordpress environment.
Since it's a class I intend to use on various projects, I decided to dynamically create a path to ...
2
votes
2answers
3k views
What is the correct way to use wordpress functions outside wordpress files?
I read about 2 methods for initializing wordpress function outside of wordpress files so We can use these functions on any page or website outside the wordpress blog.
Which one of these 2 methods is ...
2
votes
1answer
98 views
Limiting conditional comment to home only in header.php
I've discovered a solution to an IE problem with a conditional comment. I only need it on the home page because I've isolated there with a class on only one image. Unfortunately, the comment causes me ...
1
vote
1answer
93 views
Force pdf download not working when include blog-header.php
I have this code which works in a file called downloads/download.php:
<?php
header('Content-type: application/octet-stream');
header('Content-Disposition: attachment; filename="file.pdf"');
...
1
vote
1answer
86 views
Using WPDB to output raw XML fails because of wp-blog-header.php
I'm coding a plugin. One particular file of this plugin is supposed to pull data from the plugin's custom DB table, and output it with minimal processing as raw XML.
The problem is, to get the WPDB ...
1
vote
1answer
113 views
Using plugin functionality in external php script not working
I am encountering a strange problem which I couldn't solve so far.
I'm calling a .php script via cronjob (Debian/GNU Linux).
To use wordpress functionailty I added:
define('WP_USE_THEMES', false);
...
0
votes
1answer
303 views
Right way to include blog-header.php?
I have a voting system on a custom post which uses AJAX, and I have a file that handles the AJAX request. This file is inside a sub folder named php of my theme. Hence the structure is:
...
0
votes
2answers
243 views
include wp-blog-header not working on MAMP
To clarify my question...
My plugin is/was using AJAX to call the file pluginname/submit/pick.php My pluginname/pluginname.php contains the usual plugin header and wordpress automatically finds it.
...
0
votes
1answer
32 views
Cannot Modify Header Information - While trying logging in
I am having the same issue as cited on: Cannot modify header information - headers already sent (Theme Specific : functions.php)
Can you give me a help on that.
I am using Optimize Press Theme
This ...
0
votes
1answer
495 views
Loading wp-load.php in an external PHP file throws unknown error
I'm loading wp-load.php in order to access WP functions inside of a PHP file that I'm using to process form submissions.
Everything works perfectly fine on localhost and every server I've tested ...