Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am tonesfrommars on github.
  • I am tonesfrommars (https://keybase.io/tonesfrommars) on keybase.
  • I have a public key ASAQ27cYzpgGKlFbKM9oCEqXdcIZ3vE2o31qw4Kt--vP2go

To claim this, I am signing this object:

$slugs = array('overview', 'advertising', 'bacon');
foreach ($slugs as $slug) {
$ids = get_posts( array(
'post_type' => 'attachment',
'post_status' => 'any',
'posts_per_page' => -1,
'tax_query' => array(
array(
'taxonomy' => 'media_category',