You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
I am trying to integrate one of our CCP sites, which is working fine, and a wordpress install in a subfolder called blog - also working fine on its own. I'm trying to get the latest posts from the wordpress blog onto the CCP home page using the following code:
<?php define('WP_USE_THEMES', false); require('./blog/wp-blog-header.php'); query_posts('showposts=2'); ?> <?php while (have_posts()): the_post(); ?> <p><strong><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></strong></p> <?php the_excerpt(); ?><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">Read more</a> <?php endwhile; ?>
If this code is within a file test.php in the root it works fine and displays the latest two posts. However, when I try to integrate it into the CCP skin it redirects the site to:
wwwdomain.net/wp-admin/install.php (which isn't there anyway as the wordpress install is in the subfolder 'blog')
Any ideas why CCP is redirecting this and leaving out the /blog/ part of the url or how I can solve the issue?
Cheers,
Simon
Offline
Hi Simon,
I haven't received anything yet - could you send it again to info@zipskins.com?
Thanks, Nigel
Offline
hi
i would be interested in doing this too, how was it achieved?
thanks mark
Offline
would you mind telling me how it was done in the end please, as I have been told a blog is the best way to drive business to a website
thanks mark
Offline
markp17 wrote:
would you mind telling me how it was done in the end please, as I have been told a blog is the best way to drive business to a website
thanks mark
I just create my own blog skin with Artisteer version 4. I also edit the skin.php file menu to show the link to the blog in the header. RSS feeds from both back feed into the system integration.
Offline