2014-10-09 59 views
0

我想在主頁的博客條目中顯示視頻...(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框架。

回答

0

視頻來自哪裏?從一篇文章的內容?我想你應該搜索你的文件genesis_post_content,看看這個動作在哪裏掛鉤。

0

請將下面的代碼添加到您的主題的functions.php文件中,以向您的網站添加文章格式。

add_theme_support('post-formats', array(
    'aside', 
    'audio', 
    'chat', 
    'gallery', 
    'image', 
    'link', 
    'quote', 
    'status', 
    'video' 
)); 

還包括以下添加後格式圖像。

add_theme_support('genesis-post-format-images'); 
相關問題