bende aynı şeyi arıyordum. Iframe dışında çözüm bulamadım. Çözüm:
domain.com da>>
<iframe src="http://isgegitmeni.com/blog/5posts.php" name="blog" style="border:none; overflow:hidden; width:280px; height:200px;" scrolling="no" frameborder="0"></iframe>
5posts.php dosyasını text editorde oluşturup ftp ile domain.com/blog klasorune attım>>
<?php
require_once( dirname(__FILE__) . '/wp-config.php');
$title_was_printed = false;
$posts = get_posts('numberposts=5');
foreach ($posts as $post) :
if ($title_was_printed == false) {$title_was_printed = true; print "<h2><b>GÜNCEMİZDEKİ SON MAKALELER</b></h2>";}
?>
<a href="<?php the_permalink() ?>" target="_blank" title="<?php the_title(); ?>"><?php the_title(); ?></a><br>
<?php endforeach;
if ($title_was_printed == true) {
?>
<?php } ?>
wp-config.php dosyasının yerinin doğru olduğuna emin olun.
target="_blank" ifadesi linkin yeni bir sayfada açılmasını sağlıyor.
Kaynak:
https://wordpress.org/support/topic/...t-to-html-page https://forums.digitalpoint.com/thre...rdpress.35777/