I’m new to PHP. So apologies upfront… This hack works great, except it kills the ability for me to read a variable from the URL I use in another small script.
For example, I need to pass “homefolio” variable in the URL of this page http://goldmandesign.com/index-test.php?_homefolio=25 to “25” If I don’t use this hack I can easily echo this variable into the page. But once I use the hack and include <?php include(‘blog/wp-blog-header.php’); ?> specifically I can no longer echo the variable from the URL string.
And suggestions?
thanks in advance,
– Kevin
I cannot seem to get this code working. It’s not displaying properly. With this code, all I’m seeing in the area where the latest posts should display is the following:
Jun 25: ” title=”click here to more…”>Test Jun 25: ” title=”click here to more…”>Hello world!
Obviously it’s pulling the data, as I have those two posts in my WP blog, but it’s definitely not displaying them correctly.
I copied and pasted cam_oai’s code directly and did not alter it. Any suggestions?
If the code has ONLY the date and title tags – it will display exactly that.
Use whatever template tag you want to be displayed:
http://codex.ww.wp.xz.cn/Template_Tags
(e.g. the_content > for content etc.)
Well, you definitely got me moving in the right direction.
Now, is there an easy way to put comment links on those entries so people can continue on to the actual blog and make a comment?
As I said above: just use any template tag and/or code snippet that exists in the original Loop and it will work.
See the Loop:
http://codex.ww.wp.xz.cn/The_Loop
Alternatively, you take a lok at this tutorial, too:
http://www.transycan.net/blogtest/2005/07/05/integrate/
I mentioned this hack was messing up URL variables for another script I have running along side WP. I found the easy fix, which is to put the snippet of HTML and code for this hack in a separate file as an include. It works great. Thanks for thread and the notes on how to create this.