Skip to content

Instantly share code, notes, and snippets.

@travisdmathis
Last active August 29, 2015 14:00
Show Gist options
  • Select an option

  • Save travisdmathis/11191587 to your computer and use it in GitHub Desktop.

Select an option

Save travisdmathis/11191587 to your computer and use it in GitHub Desktop.
post_type=gallery&gallery_categories=weddings&orderby=menu_order&order=ASC
what im doing is made a var called $catg which carries the slug, I want to use the slug as a category name, so I pass that var into the $arg string for 'gallery_categories='.$catg
3:36 which works great for echo,,not great when actually used in wp_query($args);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment