So you want to have your posts on your site show up on your site AND show up on another site?
I have a site already(not a blog site). I just installed wp. I want the posts I make to show up on the original site. I’m just wondering where I should start? I installed wp in a directory below my original index.html file.
Do you want titles, title+excerpt, title+full-CSS-content? All depends…
Title + Excerpt + Posted By
I would like to post the last ten entries on my home page.
Thank you for any help you can give me.
Well, there’s a few approaches if you search around here. You can include the ‘core’ of wordpress into your main site, which will live-run ‘The Loop’ when your site loads and display a custom listing. My personal favorite (I’m biased!) is to use something like CG-FeedRead to aggregate your own RSS feed into your main page — the disadvantage is less control over the output (though still completely CSS-able), the advantage being that it uses a time-based cache system, and only ‘regenerates’ when the timer expires (which means it can be ‘behind’ for a few hours if you update your blog and have a longer cache cycle…).
Well, what david is saying, is that with the plugin he’s refering to, other WP feedreading plugins, or some other RSS feed reader service, you could pull a similar list from your WP blog and probably similarly easy code , and insert that into your site (I’m guessing you’ve pulled that design, the current home page is, shall we say minimalistic).
A completely different approach would be to install WP in your main directory and design a WP theme, obviously using your wonderful header graphic and CSS and php instead of tables as the front end of your site. Without knowing what else you want to do with the site, it seems to me that it would be far easier to do that, in the long run, that try and meld a blog AND a forum into a front end. Take a quick search of phBB integration here in the forums, I know I’ve seen some active threads recently regarding that subject.*EDIT-see this thread.
Just my 2Â¢.
Ok, I’m trying out the CG-FeedRead…
The Instructions say:
Add to your index.php, or wherever you want the feed ‘imported’, something like:
$feedUrl = “http://transplantcomics.com/blog/”; // a sample CNET feed. use your own…
$feedOut = getSomeFeed($feedUrl, 4, false, “feed-cnetttech”, ”, 36, false);
(I’ve replaced the URL with my root wp installation directory)
This is the error I got:
Fatal error: Call to undefined function: getsomefeed() in /home/.daze/transplant/transplantcomics.com/index.php on line 63
What am I doing wrong?
Where is the main site in relation to the wp install? if you inserted the php in your home page, and the blog isn’t in the same place, that would be the problem. If that’s the case, another solution is needed.
A quick google search turned up this:
But let’s find out where everything is installed, and then go from there.
I’ve been looking into it more today. I’ve come to the conclusion that I just don’t know which way to go. If I go with the RSS feed option, I sacrifice the functionality of wp. If I go with building my site around wp, I have to learn alot about wp coding. I’m thinking building my site around wp is the best option, but themes and templates still confuse me. Also, to build a proper theme, you need to know a bit about CSS and PHP. That is knowledge I don’t currently have. I feel like I have bit off more than I can chew. I thank you all for your help, so far. But if anyone could give me direction as to where to start, I would appreciate it.
- The topic ‘How do I display posts from wp on a different page/site’ is closed to new replies.