Tuesday, May 29, 2018

explode categories from category list in wordpress


<?php
$args = array(
    'hide_empty'               => 1,  
    'exclude'                  =>array(1,2,3,4,5) // desire id
);

$categories = get_categories($args );
var_dump($categories);

?>

No comments:

Post a Comment

Featured Post

What is JavaScript? What is the role of JavaScript engine?

  The JavaScript is a Programming language that is used for converting static web pages to interactive and dynamic web pages. A JavaScript e...