WordPress 如果有文章内容出内容,没有内容出主图

    			<?php
						$the_content = apply_filters('the_content', get_the_content());
						if ( !empty($the_content) ) {
							echo $the_content;
						}
						else{
							the_post_thumbnail(); 
						}	    			
    			?>
FavoriteLoadingAdd to favorites
欢迎给我打赏: