Merhaba arkadaşlar..

Opencart alt yapısı olan e-ticaret sitemde bir alt klasöre wordpress kurdum ve yazılar yazıyorum.

WordPress bloga yazdığım yazıların OpenCart sitede alt kısımda son eklenen 5 blog yazısı gibi göstermek istiyorum.

Aslında kodları biliyorum ancak bazı hatalar veriyor. Ücretli/Ücretsiz yardımlarını bekliyorum.

<? 
include "blog/wp-config.php"; 
mysql_query("SET NAMES 'utf-8'"); 
mysql_query("SET CHARACTER SET utf-8"); 
mysql_query("SET COLLATION_CONNECTION = 'utf-8_turkish_ci'"); 
$my_query = new WP_Query('cat=1&showposts=5');  
while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID;  
?> 
<li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li> 
<? endwhile;?>
Bu kod ile yaptım ben fakat aşağıdaki gibi bazı hatalar verdi..

Notice: Constant DB_PASSWORD already defined in /home/site/public_html/blog/wp-config.php on line 25Warning: strpos() expects parameter 1 to be string, array given in /home/site/public_html/blog/wp-includes/functions.php on line 3470Warning: substr() expects parameter 1 to be string, array given in /home/site/public_html/blog/wp-includes/script-loader.php on line 307Notice: Undefined variable: post in /home/site/public_html/catalog/view/theme/journal/template/common/footer.tpl on line 312Notice: Trying to get property of non-object in /home/site/public_html/catalog/view/theme/journal/template/common/footer.tpl on line 312