Last active
February 17, 2024 06:26
-
-
Save hayskytech/12742c9f0f33287e8a67823f8d81d06b to your computer and use it in GitHub Desktop.
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 | |
$args = array( | |
'taxonomy' => 'place', | |
'parent' => 0, | |
'orderby' => 'name', | |
'order' => 'ASC', | |
'hide_empty' => true, //can be 1, '1' too | |
'number' => false, //can be 0, '0', '' too | |
'offset' => '', | |
'fields' => 'all', | |
'name' => '', | |
'slug' => '', | |
'hierarchical' => true, //can be 1, '1' too | |
'search' => '', | |
'name__like' => '', | |
'description__like' => '', | |
'pad_counts' => false, //can be 0, '0', '' too | |
'get' => '', | |
'child_of' => false, //can be 0, '0', '' too | |
'childless' => false, | |
'cache_domain' => 'core', | |
'update_term_meta_cache' => true, //can be 1, '1' too | |
'meta_query' => '', | |
'meta_key' => array(), | |
'meta_value'=> '', | |
); | |
$places = get_terms($args); |
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 | |
/* | |
Plugin Name: Site Title Shortcode | |
*/ | |
add_shortcode('site-title', function () { | |
return get_bloginfo('name'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment