2012-05-22 2 views
0

나는 Magento 전자 상거래 웹 사이트 & wordpress blog 위치가 있고있다. Magento 홈페이지에 최근 5 개의 블로그 게시물을 표시하고 싶습니다. 아래 코드를 사용해 보았습니다magento에 wordpress 위치에서 최근 5 개의 포스트를 표시하는 방법

// Get the last 3 posts. 
<?php 
require('/the/path/to/your/wp-blog-header.php'); 
?> 
<?php query_posts('showposts=3'); ?> 
<?php while (have_posts()) : the_post(); ?> 
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a><br /> 
<?php endwhile;?> 

이 파일을 새 .phtml 파일로 복사했으며 해당 파일을 홈페이지로 복사했습니다. 그러나이 내 홈페이지를 수행 한 후에 만 ​​헤더에게 & breedcrumbs ... 이 문제에 대한 모든 솔루션이 감사를 ...... 보여주는

+0

간단한 템플릿 (5 개의 게시물 만 표시)을 만들고 iframe을 사용해보세요. – ruslyrossi

답변

관련 문제