Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Force the “Choose from the most used tags” meta box section to always be expanded

You can do this using jQuery.

First of all, you need to add your script into your functions.php

function my_theme_scripts() {
    wp_enqueue_script( 'expand-tags', get_site_url() . '/js/expand-tags.js', array( 'jquery' ), '1.0.0', true );
}

add_action( 'admin_enqueue_scripts', 'my_theme_scripts' );

Then, in your file (expand-tags.js) which is located on, for example, public_html/mysite/js/, you will have to have something like this:

$(document).ready(function() {
   $("#link-post_tag").trigger("click");
});

link-post_tag is the ID of the Choose from the most used tags button, so when the page is loaded, a button click will be triggered.

Related Posts:

  1. Human Time Diff, change mins to minutes
  2. Adding Multiple Values to a Post Meta Key
  3. Converting a dynamic piece of code using WordPress Loop into a static one using Post ID
  4. Setting posts_per_page for taxonomy term template
  5. Change all author links in Blog roll
  6. saving/reading custom field value does not work – no value gets POSTed
  7. Check if user has avatar
  8. Run function after post is updated
  9. How do I display some posts fully on the homepage, and some as an excerpt only?
  10. Get Posts Under Custom Taxonomy
  11. Prepending %category% onto default posts fails
  12. get_adjacent_post by language
  13. How to compare two posts including their meta fields on a scalable base?
  14. Duplicate Custom Post Type and Taxonomy Slug
  15. Remove Custom Post Type Slug and add Custom Taxonomy to Permalink Structure?
  16. Getting value from get_post_custom
  17. Send post id through ajax and get the post content back
  18. Calling Different Custom Post Timestamps in a table
  19. How can I setup a relationship using categories in WordPress?
  20. Is it possible to paste a link without tags and make it directly a link in a post?
  21. Display post x of y within category
  22. Force authors to Preview a post before publishing
  23. How to display posts via custom taxonomy terms using checkboxes?
  24. WordPress Automatic Filename Changer
  25. How can I hide tags on a child-category page, if that tag has not been used?
  26. Cannot retrieve a custom RSS field from posts
  27. 404 error on default post type and default taxonomy fronted page
  28. Saving custom fields to a custom taxonomy
  29. Redirect to another page using contact form 7? [closed]
  30. Order posts alphabetically: how to set order=asc in mysql query?
  31. How to automate featured posts number? [duplicate]
  32. How do I insert a post with custom post type and relate it to a custom taxonomy?
  33. outputting posts’ taxonomies: cant get ‘get_the_taxonomies’ working
  34. Customize rel=canonical tag for single blog post
  35. How to I retrieve the ID from the Posts page?
  36. How to save meta checkbox WordPress
  37. disable Tab post on nav-menus page (Admin)
  38. Loop parent terms {display posts} AND loop child terms {display posts}
  39. Adding bootstrap classes to video shortcodes
  40. How to calculate the average of a post meta value(Numeric) of a specific author
  41. Every second post different class in blog view
  42. Format latest/newest post differently
  43. is_page Funtion for Posts ?
  44. Is there any way to tell when wp_postmeta has been updated?
  45. Post type no single page
  46. relating business and products with custom taxonomy?
  47. Is there a query string for edit.php to show all posts that have no custom taxonomy terms?
  48. Get post meta retrieving wrong value
  49. Adding a user’s ID behind the tag ref link address
  50. wpColorPicker – problem with implementation to post meta
  51. The_excerpt() doesn’t parse – how to change that?
  52. How to only publish posts with image in it
  53. Isn’t the way posts are displayed very unefficient?
  54. WordPress bulk category select when publishing post
  55. Add custom text automatically on each post
  56. How to check in functions.php if there is data in a WP_Query?
  57. Change post author without using wp_update_post()
  58. if in category but only with post meta
  59. restrict incrementation of post vies count when refreshing the page
  60. Defined function isn’t showed on page
  61. wp_query with ajax
  62. Update post meta within save_post action
  63. WordPress 302 Redirect to Random Product/Post/Page
  64. Display post number by category
  65. Updating post meta for checkbox
  66. Saving Post Data in Another Database
  67. Getting Whitescreen when publishing a post [closed]
  68. Using system date format
  69. Get post by tag
  70. Add code to a specific post’s content
  71. Related Posts function not working
  72. Custom permalink for each post
  73. the_content() Not Grabbing All Content
  74. How can I tell if a post has been published at least once?
  75. Un-highlight Blog Menu Item when Category Menu Item is Selected
  76. Is there a way getting post fields using `transition_post_status`
  77. Automatic blog page with custom design [closed]
  78. Is it advisable to use $post->comment_count instead of get_comments_number( $post_id )
  79. Add multiple meta keys to a post at once
  80. Show number of posts by logged in user
  81. How does WP decide how to display a page
  82. Related Posts: Changing Function For Posts Per Page
  83. Unable to differentiate between two categories under custom post type on single.php
  84. When sending a newsletter -not with wordpress- the server has 100% cpu [closed]
  85. Retrieve data from post meta meta_key having ‘_product_fq_image’ while having author_id and post type is PRODUCT
  86. Query function not executed between element [closed]
  87. Insert data from custom created PHP page into wp_postmeta table
  88. Optimize CPT-function with a loop
  89. Adding a meta box to determine the sidebar [closed]
  90. The loop starting at a certain ID
  91. Simple Custom Metabox Not Saving
  92. Same post appears in related Posts?
  93. Internal linking to posts permalink fail because of spaces and stripe at postname
  94. Get post category as a separate string and url
  95. Have h2 tag not show up if there are no blog posts
  96. WordPress as CMS: How to manage/handle images assigned to a post as full-sized background images in a slideshow?
  97. Making a wordpress page print friendly
  98. How To Use Custom Tax of a Post Type
  99. How to output all taxonomy links from a custom post type in a menu?
  100. Geting error in post and category [closed]
Categories posts Tags functions, post-meta, posts, taxonomy
WP Plugin for onpage link suggestions [closed]
WooCommerce plugin won’t let me access settings

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress