Sometimes you just don’t feel like templating a whole site. Or maybe you have a blog separate from your personal webpage. Either way, you might just want to use some nifty (that might be contentious) WP template functions to grab your blog posts and pump them into a page external to your blog. There are already many posts about this out there in InterwebsBlogLand, but I figure that my post will only increase the chances of someone finding the answer they need.
There are a few solutions I suppose.
a) Publish and RSS feed, use jQuery’s $.getJSON( ); to pull in the data and access it iteratively, or
b) If you’re already familiar with the WP templating syntax, you might as well use what you know. This method also allows you to access a plethora of other WP functions and filtering options.
So, here we go:
<?php
define('WP_USE_THEMES', false);
require('blog/wp-load.php');
query_posts('');
?>
…where blog is the path to the root of your WordPress installation. With that in place, you can start your Loop and grab posts to your heart’s desire.
Hi, this is a comment.
To delete a comment, just log in and view the post's comments. There you will have the option to edit or delete them.
PillSpot.org. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.PillSpot.org. Herbal-supplements@buy.online” rel=”nofollow”>.…
Categories: Stop SmokingSkin Care.Antibiotics.Antidiabetic.Mental HealthAnxiety/Sleep Aid.Pain Relief.Stomach.Blood Pressure/Heart.Mens Health.Antidepressants.Anti-allergic/Asthma.Vitamins/Herbal Supplements.Womens Health.Weight Loss.Antiviral.Eye…
Buy:Aricept.Nymphomax.Lipitor.Advair.Amoxicillin.Seroquel.Female Pink Viagra.Zocor.Acomplia.Ventolin.Benicar.SleepWell.Female Cialis.Buspar.Prozac.Cozaar.Wellbutrin SR.Lipothin.Zetia.Lasix….