Şimdi rss ile değil de normal php formatında bir sayfa oluşturduğumda wp-config.php dosyasını o sayfaya include etmem gerekecek. Elimde birkaç kod var onları sizlerle paylaşayım, konuya hakim olan arkadaşlar düzenleme yapabilirlerse sevinirim.
Aşağıdaki kodu
www.site.com/3 adresinin index.php dosyasına yerleştirip ilk sayfasında son konuları açıklamalı ve resimli bir şekilde gösterebiliyorum. Fakat
www.site.com adresinde kurmuş olduğum wordpress'e ait index.php dosyasına bunu ekleyip
www.site.com/3 adresindeki gibi gösterebilirim bir türlü beceremedim.
<?php
$recent = new WP_Query("cat=3&showposts=3"); while($recent->have_posts()) : $recent->the_post();?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_thumbnail($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" width="50" height="50" /></a>
<b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
<?php the_content_limit(120, "[film izle]"); ?>
<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
<?php endwhile; ?>Ekran çıktısı