Loads the WordPress environment and template.

learn more… | top users | synonyms

0
votes
0answers
24 views

why get_header doesn't work twice in a test

I'm trying to test a template. It's working fine individually until I run all the tests altogether and the tests fail. protected function load_template() { do_action( 'template_redirect' ); ...
0
votes
1answer
55 views

Get permalink of a post without using Wordpress functions

I'm trying to get the permalink of a post without using Wordpress functions and am trying to find the best way to go about it. Basically whats happening is that I have a multi site install of ...
0
votes
0answers
42 views

Using Wordpress functions in custom PHP file without any output to the page?

I need to use Wordpress functions get_option and update_option in a custom PHP file. However, I also need to be able to redirect using headers at the end of the PHP script. Requiring wp-load.php or ...
0
votes
1answer
49 views

Wordpress Website with Login system

I am new to WordPress but have been developing in PHP (CI specially). I stumbled into problem when I have to integrate a website developed in CI with a WordPress website. This wordpress component is ...
0
votes
0answers
118 views

Problem loading wordpress functions outside of wordpress

I´ve just finished setting up my first ever website and blog, so please be gentle ;) . I am having a problem using some functions outside my wordpress installation (blog.example.com). To be ...
2
votes
1answer
88 views

there's a way to include a minimal WP for check only the current user, its roles (caps?) and then release/free it?

I need to count how many times a file in a particular sub-directory is downloaded and track who downloaded it. I'm using a Php file to do it, it isn't a WP file but I need to include WP to get the ...
1
vote
2answers
258 views

Downsize CPU & DB usage in wordpress

i have created a smart interface WP based which we use to manage clients.. it uses a lot of information and data each time a client is returned / viewed. it is a locked interface and does not have ...
0
votes
0answers
134 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
3answers
371 views

How to load wordpress environment without loading the template?

Basically I want to use wordpress functions for example wp_create_user() or wp_update_user() outside of wordpress (outside of wordpress directory). I tried with all the below code snippets to load ...
-2
votes
1answer
20 views

Pageline V1.4.5: background color of my title

Wow do I change the background color of my title in Blog articles? Not the color of the page but the backgroundcolor of the blogtitle.
0
votes
0answers
96 views

Strange characters appeared in header

Hi everyone! I have a problem with my website. There are strange characters in the header and I couldn't find any file with hardcoded characters like this. So I don't know how to fix this. The same ...
0
votes
1answer
166 views

Fatal error: Call to undefined function the_ratings_results()

I was wondering if I rack your brains a bit on this one. I have a custom theme that has files in the theme folder but do not load as wp template files on the page settings. I also run EDD (easy ...
2
votes
2answers
450 views

Using wordpress and codeigniter in one website

Is it possible to use WordPress as the CMS but all of contents will be displayed using CodeIgniter? What I want to know also if I can use the WordPress functions by simply including this ...
2
votes
1answer
338 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"'); ...
0
votes
1answer
103 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 ...
1
vote
2answers
473 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); ...
3
votes
4answers
1k 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 ...
1
vote
1answer
117 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 ...
0
votes
2answers
472 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. ...
8
votes
2answers
12k 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 ...
0
votes
1answer
480 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: ...
2
votes
1answer
103 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 ...
0
votes
1answer
732 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 ...