我想在主頁的博客條目中顯示視頻...(tzahirozental。co。il) 由於某種原因,它忽略了文章中的視頻並僅顯示了文中的文字博客條目。 我知道那裏有一些過濾器,我需要更改loops.php,但我不知道是什麼。wordpress:modfiy的博客條目
function genesis_legacy_loop() {
global $loop_counter;
$loop_counter = 0;
if (have_posts()) : while (have_posts()) : the_post();
do_action('genesis_before_post');
printf('<div class="%s">', join(' ', get_post_class()));
do_action('genesis_before_post_title');
do_action('genesis_post_title');
do_action('genesis_after_post_title');
do_action('genesis_before_post_content');
echo '<div class="entry-content">';
do_action('genesis_post_content');
echo '</div>'; //* end .entry-content
do_action('genesis_after_post_content');
echo '</div>'; //* end .entry
do_action('genesis_after_post');
$loop_counter++;
endwhile; //* end of one post
do_action('genesis_after_endwhile');
else : //* if no posts exist
do_action('genesis_loop_else');
endif; //* end loop
}
非常感謝。
*主題工作在Genesis框架。