1
我一直在努力將html頁面轉換爲wordpress。我已成功轉換了這些元素。但我的滑塊有一個嵌入式YouTube視頻。下面的代碼,如果從我的HTML主題WordPress的 - the_excerpt()不工作
<iframe width="420" height="345"
src="http://www.youtube.com/embed/XGSy3_Czz8k">
</iframe>
我想要得到這個youtube鏈接作爲職位。
我已經試過
<?php query_posts('cat=3','&posts_per_page=1'); ?>
<?php while (have_posts()) : the_post(); ?>
<iframe width="420" height="345"
src="<? the_excerpt(); ?>">
</iframe>
<?php endwhile;?>
發生了什麼?
我注意到,我的RAM使用增長迅速,並繼續這樣做,我從來沒有得到視頻。
是什麼原因呢?我做錯了什麼?有沒有其他解決方案來解決我的問題?
真棒答案!謝謝 :) – Niko