WordPress (admin) posts search GET request filter

function getPostsByCategorySlug(slug) { return site.categories().slug( slug ) .then(function( matchingCats ) { // matchingCats will be an array of the one post that matches // the provided slug if ( ! matchingCats.length ) { throw new Error( `No category found for slug “${slug}”` ); } var catID = matchingCats[ 0 ].id; return site.posts().categories(catID); }); } getPostsByCategorySlug( … Read more

Linking table cells to network folders

If it is a mapped drive under windows: <a href=”https://wordpress.stackexchange.com/questions/249806/file:///networkdrive/folder1/folder2/folder3/DB – Databases”>DB – Databases</a> If it is not a mapped dirve: <a href=”https://wordpress.stackexchange.com/questions/249806/file://///server/folder1/folder2/folder3/DB – Databases”>DB – Databases</a> You should use the 3 /// for the file protocol and 2 // for the network address. More and more browsers seem to block links with the file:// … Read more

Remove categories from post edit page, but keep in sidebar?

You can hide them in the Screen Options dropdown (which is a per-user basis) if that’s what you’re looking for: You could also remove the metaboxes with remove_meta_box seen here: https://codex.wordpress.org/Function_Reference/remove_meta_box So depending on what the HTML ID of that custom box is, you could add a function. Let’s say Client Types is client-types, then … Read more