This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$domsxe = simplexml_load_string(get_the_post_thumbnail()); | |
$thumbnailsrc = $domsxe->attributes()->src; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// functions.php -- Theme | |
// 方法一: | |
if (!defined('ABSPATH')) exit; | |
class Replace_Google_Fonts | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
203.208.48.151 | |
203.208.46.176 | |
203.208.46.147 | |
203.208.46.148 | |
203.208.46.212 | |
203.208.46.158 | |
203.208.46.180 | |
203.208.46.198 | |
203.208.46.200 | |
203.208.41.150 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/********************************************** | |
** | |
**在主题文件夹下的functions.php中加入以下代码: | |
** | |
***********************************************/ | |
//修改字数 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//获取ID | |
global $post; | |
$category = get_the_category($post->ID); | |
$cat_parent = get_category($category[0]->category_parent)->term_id; | |
if (!empty($cat_parent)) { | |
$cat_id = $cat_parent; //如果有父级分类,获取父级分类ID |
NewerOlder