Wordpres Get Template Part Wpassist

get_template_part – Use Cases and Examples

WordPress allows theme developers to manage their templates in many different ways. But certainly, get_template_part is the best version of it. It uses core WordPress functions to find and load a specific PHP file. So, basically it is like PHP include, but on steroids. In this post, we will show you a few use cases […]

Read more get_template_part – Use Cases and Examples

Wordpress Get Post Id By Meta Value

WordPress: Get Post ID by Meta Value

If you are into developing custom themes for WordPress, you probably know how useful it can be to use custom meta fields in your posts. But only adding those fields is not enough. You need custom loops or functions to filter/get your posts using those meta values. In this post, we share with you a […]

Read more WordPress: Get Post ID by Meta Value

[How To] Remove Block Library CSS from WordPress

Gutenberg editor, that is the default editor for latest WordPress installations, uses special CSS libraries to manage blocks on your site’s frontend. If you are using this new WP editor, it will automatically add this library CSS code on your site; <link rel=’stylesheet’ id=’wp-block-library-css’ href=’https://nextseasontv.com/wp-includes/css/dist/block-library/style.min.css’ type=’text/css’ media=’all’ /> But, if you are not using Gutenberg […]

Read more [How To] Remove Block Library CSS from WordPress

[How to] Add New Tags or Taxonomies to WordPress using PHP

function wpassist_insert_terms(){ $ahc = get_term_by(‘name’, ‘American Heroes Channel’, ‘post_tag’); if( !$ahc ){ wp_insert_term( ‘American Heroes Channel’, ‘post_tag’); wp_insert_term( ‘Discovery Channel’, ‘post_tag’); wp_insert_term( ‘Animal Planet’, ‘post_tag’); wp_insert_term( ‘USA Network’, ‘post_tag’); wp_insert_term( ‘Amazon’, ‘post_tag’); wp_insert_term( ‘TNT’, ‘post_tag’); } } add_action( ‘wp_head’, ‘wpassist_insert_terms’ );

Read more [How to] Add New Tags or Taxonomies to WordPress using PHP