get_all_category_ids for bookmark
سؤال
I was wondering how to create a list of categories name and ids for Wordpress Bookmarks such as get_all_category_ids
for post.
I tried using the get_bookmarks
, but the category does not appear in it.
Update:
Based on advice from @Mridul-Aggarwal, I wrote code that might be useful:
<?php
$tautan=get_terms('link_category');//get links category object
$html="<ul>\r\n";//Init
/*Looping*/
foreach($tautan as $isi) {
$nama=$isi->name;
$id=$isi->term_taxonomy_id;
$html.="\t<li>$id - $nama</li>";
};
$html.="</ul>\r\n";
/*Output*/
echo $html;
?>
لا يوجد حل صحيح
لا تنتمي إلى wordpress.stackexchange