WordPress, Best Way to Integrate?
-
I work for a web design company and am looking at the best way to integrate WordPress blogs into our client’s existing websites. I am thinking that this type of code will work:
<?php require('../Wordpress/wp-blog-header.php'); ?> <?php $posts = get_posts('numberposts=10&order=ASC&orderby=post_title'); foreach ($posts as $post) : start_wp(); ?> <?php the_date(); echo "<br />"; ?> <?php the_title(); ?> <?php the_excerpt(); ?> <?php endforeach; ?>
The reason for this being that it will use the website’s styles. I’ve considered looking into creating a theme for each website but it seems this would be a pretty big job and would have to be done for each website. The benefit of using the method I posted above being that we could pretty much chuck the same WordPress related code into each website and that would pretty much be that. The downside is that the code above doesn’t do everything we need. We would want it to page if the number of posts reached a certain number, possibly have the title of the blog post to link to an individual page with the post on it and a few other bits that WordPress allows you to do.
Does anyone have any good examples of this type of thing or can recommend good resources. I’ve been looking on the WordPress website and can’t see any particularly good examples (although there may be loads but the site is so packed full of info) but if anyone has links to them it would be great if you could post them. Also, what does everyonen think of the way I’m going to integrate WordPress blogs into existing sites? Is it the best/easiest way to do it?
Cheers ??
- The topic ‘WordPress, Best Way to Integrate?’ is closed to new replies.