I want to use the get_option() function of wordpress in one of my theme’s files, […]
Tag: wp-load.php
Creating a Dynamic Path to wp-blog-header.php
Created a class in an external script which is dependent on the WordPress environment. Since […]
Access bloginfo, get_option, and plugins_url from a non-core php file
I am creating a plugin that has a php file in the plugin directory which […]
external wordpress pages using wp-blog-header
I am setting up a few sections of a website external to the core wordpress […]
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 […]
How do you load WordPress from an external script when using MultiSite?
I have an external script that needs to load up WordPress in order to have […]
Get current user data from external PHP page
I have a PHP page at the same level as the template/theme on WordPress. I […]
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’, […]
Include CSS with PHP without including wp-load?
I have a CSS-file generated from PHP. In my file it says… header(“Content-type: text/css”); define(‘WP_USE_THEMES’, […]
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). […]
No More Posts Available.
No more pages to load.