如何从中提取url:
$url = get_the_term_list($post->ID, \'nom-origin\')
我尝试了很多东西,但我就是不明白。我得到的唯一解决方案是这个,但我知道它太乱了:
$url = get_the_term_list($post->ID, \'nom-origin\');//,\'<h3>Job Category:</h3> \', \', \', \'\' );
$url_tmp1 = explode("href=\\"",$url);
$url_tmp2 = explode("\\" rel=\\"tag\\">",$url_tmp1[1]);
$url_simple = $url_tmp2[0];