How to add Tags Filter in wordpress admin dashboard

Done Successfully from this coding. Inserted wp-includes/function.php function kc_add_taxonomy_filters() { global $typenow; // an array of all the taxonomyies you want to display. Use the taxonomy name or slug $my_taxonomies = array( ‘post_tag’ ); switch($typenow){ case ‘post’: foreach ($my_taxonomies as $tax_slug) { $tax_obj = get_taxonomy($tax_slug); $tax_name = $tax_obj->labels->name; $terms = get_terms($tax_slug); if(count($terms) > 0) { … Read more

Query how many items to show in shortcode

add_shortcode( ‘type_portfolio’, function( $atts, $content = null ){ $atts = shortcode_atts( array( ‘column’ => ‘3’, ‘category’ => ‘0’, ‘ppp’ => -1 ), $atts); extract($atts); $args = array( ‘posts_per_page’ => $ppp, ‘post_type’ => ‘fen_portfolio’ ); if( $category > ‘0’ ){ $args[‘tax_query’] = array( array( ‘posts_per_page’ => -1, ‘taxonomy’ => ‘cat_portfolio’, ‘field’ => ‘term_id’, ‘terms’ => $category … Read more

Direct link to “New post” in specific category?

Paste the following code into your functions.php file. The wp_terms_checklist_args filter hook will make sure that one or more category is pre-selected and the op_create_selected_cat_post_link() function will help you to create a new post link with pre-selected category ids. The function takes $cats parameter and it can be a single category id or multiple categories … Read more

Edit custom post type admin menu link

You can use the admin_menu hook. You will be able to loop over all menus. add_action( ‘admin_menu’, ‘wpse_306432_edit_post_type_admin_menu’, 11); function wpse_306432_edit_post_type_admin_menu() { global $menu; foreach($menu as $k => $v){ if($v[1] == ‘edit_applications’) // possibly ‘edit_application’, I’m not sure { $menu[$k][2] = ‘edit.php?post_status=all&post_type=application&cat=36&paged=1’; // I modify your query break; } } } Should work for you … Read more

Trigger a Link once a new post is Published

1- Just use jquery on form submit. jQuery(document).ready(function ($) { //default wordpress new post form id = #post $(“#post”).submit(function () { $.ajax({ url: “http://YOUR URL”, success: function (response) { console.log(“CALL OK!”); }, error: function () { console.log(“CALL FAILED!”); } }); }); }); 2- Put this code inside your theme: make new file, put the code … Read more