Only display top level taxonomy on the edit post page with option to expand sub-categories

This is a VERY untested approach, but the recent addition of CSS’s :has selector has been top-of-mind for me lately, and I wondered if a simple solution could be built using purely CSS.. As a proof of concept, add the following to your site’s admin CSS: #categorychecklist > li .children{display:none;} #categorychecklist > li:has(input:checked ) .children{display:block;} … Read more

‘Add Media’ to post – filter images

Well I have figured out the answer to my question. As mentioned in the comments, I’m making an ajax call to get the list of entries for the custom ‘select’ dropdown. In the ajax function, I’m comparing window.location.pathname to this regex:var regex = /\/wp-admin\/post[-new]*\.php/; to make sure that it only executes when I’m trying to … Read more

techhipbettruvabetnorabahisbahis forumuedueduedusedueduedueduseduseduedu