Exclusion of arbitrary taxonomy posts



  • Hi, I know I have to use WP_Query and the cycle, but I can't get a user record from the taxonomy database, like, "categorydocuments." I read that I should have used a template for taxonomy-{slug}, but I don't know how to write the cycle right there and what arguments to submit to WP_Query.

    For example, I'm moving on the reference and I get a message from post_type 'documents' and a taxonomy 'categorydocuments'.

    How can I get a private taxonomy and put this taxonomy in $args for WP_Query? Please don't offer me a password reference.



  • In the arguments for WP_Query, a mass of tax_query should be added. Here's the documentation: http://wp-kama.ru/function/wp_query#parametry-taksonomij




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2