desaturated
Member
Posted 3 months ago #
Hi gurus,
I have a website http://example.com and a blog in http://example.com/blog. In my blog sidebar i have default widget like archives, category, recent post .etc
Now is it possible for me to put that Recent Posts widget to my original homepage? i wonder if <?php wp_get_recent_posts( $num ) ?> works when my blog is under a sub-domain.
Anyone?
Why don't you use an RSS feed. If example.com is also driven by WordPress, use the RSS Feed widget to put the feed from example.com/blog/ there? (If you are using pretty URLs, the feed would probably be something like http://example.com/blog/feed/)
Make sense?
desaturated
Member
Posted 3 months ago #
hi erm my orginal http://example.com is a php site alone. while wordpress is installed under http://example.com/blog.
I want my recent post widget to be display in my http://example.com. So when people click on one of the recent post title on my http://example.com, they will direct link to the post in http://example.com/blog page..
Overall i want my original site to contain recent post hyperlink. click on title, link to blog.
about RSS feed, sorry but i not really sure how it works for my standalone php site and blog. can enlighten me a little?
thanks
Then you need to pull WP into your non-WP blog. That can be done using the tutorial (and also read some of the comments there as they also contain solutions to problems people have had attempting to do this) here:
http://www.corvidworks.com/articles/wordpress-content-on-other-pages
HTH. Feel free to shoot me an email (check my profile) if you need more help.
desaturated
Member
Posted 3 months ago #
ah thanks i will try it out!