Skip to content

Instantly share code, notes, and snippets.

@hayskytech
Last active February 17, 2024 06:26
Show Gist options
  • Save hayskytech/12742c9f0f33287e8a67823f8d81d06b to your computer and use it in GitHub Desktop.
Save hayskytech/12742c9f0f33287e8a67823f8d81d06b to your computer and use it in GitHub Desktop.
<?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);
<?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