<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Accessing WordPress functions from external PHP pages</title>
	<atom:link href="http://www.wordpress-master.com/wordpress-functions-external-php-pages.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wordpress-master.com/wordpress-functions-external-php-pages.html</link>
	<description>Teaching Wordpress to the World</description>
	<lastBuildDate>Sun, 05 Feb 2012 06:16:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Web Hosting</title>
		<link>http://www.wordpress-master.com/wordpress-functions-external-php-pages.html/comment-page-1#comment-1686</link>
		<dc:creator>Web Hosting</dc:creator>
		<pubDate>Wed, 05 Oct 2011 13:21:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.wordpress-master.com/?p=499#comment-1686</guid>
		<description>When I follow your 8 lines of code and use them strangely my browser get redirected to the wp-admin/install.php page...</description>
		<content:encoded><![CDATA[<p>When I follow your 8 lines of code and use them strangely my browser get redirected to the wp-admin/install.php page&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to Use WordPress Functions on External Pages &#171; MT Web Solutions</title>
		<link>http://www.wordpress-master.com/wordpress-functions-external-php-pages.html/comment-page-1#comment-1661</link>
		<dc:creator>How to Use WordPress Functions on External Pages &#171; MT Web Solutions</dc:creator>
		<pubDate>Mon, 06 Jun 2011 08:30:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.wordpress-master.com/?p=499#comment-1661</guid>
		<description>[...] Just edit the path so that it leads to your WordPress installation. You can find a better example about how to use the code at http://www.wordpress-master.com/wordpress-functions-external-php-pages.html. [...]</description>
		<content:encoded><![CDATA[<p>[...] Just edit the path so that it leads to your WordPress installation. You can find a better example about how to use the code at <a href="http://www.wordpress-master.com/wordpress-functions-external-php-pages.html" rel="nofollow">http://www.wordpress-master.com/wordpress-functions-external-php-pages.html</a>. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.wordpress-master.com/wordpress-functions-external-php-pages.html/comment-page-1#comment-1633</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Sat, 04 Sep 2010 18:06:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.wordpress-master.com/?p=499#comment-1633</guid>
		<description>just thought I&#039;d add my 2 cents!

On the site I am currently working on, I am using WordPress as the CMS....

Backend (wordpress):
-login as admin
-add categories for your page, and page sections
  (i.e. home, home-top,home-top-left,etc...wherever you want controllable content)
-add content(posts) to your categories
--posts-&gt;add new
---title-&gt;something distinctive(Home: top content)
---category(select the category you want the article to belong to (home-top))
---write article
----publish!

Frontend (the website):
- at the top of pages that use wp blog entries 
( &lt;code&gt;&lt;/code&gt;)
 -here is the code you place in whatever section
  ( div &#039;home-top&#039; being the container id same as the post category for readability...can be any id, or container for that matter)
&lt;code&gt;



&lt;/code&gt;

Basically I am able to control every section of my site through word press (content wise) and by using the user permissions module I am also able to use the blog capabilities as well by hiding all the section content from all but admin...anyway I thought it was cool, peace out.</description>
		<content:encoded><![CDATA[<p>just thought I&#8217;d add my 2 cents!</p>
<p>On the site I am currently working on, I am using WordPress as the CMS&#8230;.</p>
<p>Backend (wordpress):<br />
-login as admin<br />
-add categories for your page, and page sections<br />
  (i.e. home, home-top,home-top-left,etc&#8230;wherever you want controllable content)<br />
-add content(posts) to your categories<br />
&#8211;posts-&gt;add new<br />
&#8212;title-&gt;something distinctive(Home: top content)<br />
&#8212;category(select the category you want the article to belong to (home-top))<br />
&#8212;write article<br />
&#8212;-publish!</p>
<p>Frontend (the website):<br />
- at the top of pages that use wp blog entries<br />
( <code></code>)<br />
 -here is the code you place in whatever section<br />
  ( div &#8216;home-top&#8217; being the container id same as the post category for readability&#8230;can be any id, or container for that matter)<br />
<code></p>
<p></code></p>
<p>Basically I am able to control every section of my site through word press (content wise) and by using the user permissions module I am also able to use the blog capabilities as well by hiding all the section content from all but admin&#8230;anyway I thought it was cool, peace out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed Gately</title>
		<link>http://www.wordpress-master.com/wordpress-functions-external-php-pages.html/comment-page-1#comment-1626</link>
		<dc:creator>Ed Gately</dc:creator>
		<pubDate>Wed, 14 Jul 2010 17:04:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.wordpress-master.com/?p=499#comment-1626</guid>
		<description>Could you tell me a little more about the JQuery/AJAX call you are making to the Custom_functions.php file?

There are several references on the web related to the require_once() implementation having some issues.  You will notice the solution in my post is all self contained.  You may have an issue with Wordpress Globals not being passed outside the active function.

Here is one such reference: &lt;a href=&quot;http://wordpress.org/support/topic/285890&quot; rel=&quot;nofollow&quot;&gt;Calling wp-blog-header.php from inside a PHP function&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Could you tell me a little more about the JQuery/AJAX call you are making to the Custom_functions.php file?</p>
<p>There are several references on the web related to the require_once() implementation having some issues.  You will notice the solution in my post is all self contained.  You may have an issue with WordPress Globals not being passed outside the active function.</p>
<p>Here is one such reference: <a href="http://wordpress.org/support/topic/285890" rel="nofollow">Calling wp-blog-header.php from inside a PHP function</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Sheu</title>
		<link>http://www.wordpress-master.com/wordpress-functions-external-php-pages.html/comment-page-1#comment-1624</link>
		<dc:creator>Alan Sheu</dc:creator>
		<pubDate>Mon, 12 Jul 2010 19:29:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.wordpress-master.com/?p=499#comment-1624</guid>
		<description>Hi Ed,

Thank you very much for providing the article. I know this post is rather old, but I hope you might be able to help me out with implementing the script you&#039;ve outlined. I&#039;m not having any success with the require_once() method, and I am not sure what the problem is, since it seems so straightforward.

At the moment, I&#039;m using JQuery to make an Ajax call to &quot;custom_functions.php&quot;. I don&#039;t want to add the new function definitions directly to the theme&#039;s original &quot;functions.php&quot; because I need to pass specific information asynchronously and have the server return new DOM elements based on the information given it.

The error I see is:
&quot;Fatal error: Call to undefined function query_posts() in /..filepath../custom_functions.php on line 23&quot;

I know that the line &quot;require_once(&#039;./filepath.../blog/wp-blog-header.php&#039;);&quot; is being executed correctly, since there is no fatal error caused by the require_once() method (I kept getting those until I correctly inputted the link). At least I THINK it&#039;s safe to assume that the wp-blog-header.php is being imported into the new document.

Do you have any ideas on how I can fix this? I am at a complete loss. Any help would be greatly appreciated!</description>
		<content:encoded><![CDATA[<p>Hi Ed,</p>
<p>Thank you very much for providing the article. I know this post is rather old, but I hope you might be able to help me out with implementing the script you&#8217;ve outlined. I&#8217;m not having any success with the require_once() method, and I am not sure what the problem is, since it seems so straightforward.</p>
<p>At the moment, I&#8217;m using JQuery to make an Ajax call to &#8220;custom_functions.php&#8221;. I don&#8217;t want to add the new function definitions directly to the theme&#8217;s original &#8220;functions.php&#8221; because I need to pass specific information asynchronously and have the server return new DOM elements based on the information given it.</p>
<p>The error I see is:<br />
&#8220;Fatal error: Call to undefined function query_posts() in /..filepath../custom_functions.php on line 23&#8243;</p>
<p>I know that the line &#8220;require_once(&#8216;./filepath&#8230;/blog/wp-blog-header.php&#8217;);&#8221; is being executed correctly, since there is no fatal error caused by the require_once() method (I kept getting those until I correctly inputted the link). At least I THINK it&#8217;s safe to assume that the wp-blog-header.php is being imported into the new document.</p>
<p>Do you have any ideas on how I can fix this? I am at a complete loss. Any help would be greatly appreciated!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

