Title: Custom_fields &#8211; Wp_query
Last modified: April 15, 2017

---

# Custom_fields – Wp_query

 *  Resolved [doxy](https://wordpress.org/support/users/doxy/)
 * (@doxy)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/custom_fields-wp_query-2/)
 * I have a new toolset custom field, but i cant see it in front end object..
 *  $query = new WP_Query( array(
    ‘post_type’ => ‘edicao’, ‘meta_key’ => ‘wpcf-
   autor-em-destaque’, ‘orderby’ => ‘meta_value’, ‘order’ => ‘ASC’ ) );

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Anonymous User 14808221
 * (@anonymized-14808221)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/custom_fields-wp_query-2/#post-9036333)
 * You can display Types Custom Fields either with ShortCodes or with [PHP](https://wp-types.com/documentation/customizing-sites-using-php/functions/).
 *  Thread Starter [doxy](https://wordpress.org/support/users/doxy/)
 * (@doxy)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/custom_fields-wp_query-2/#post-9055446)
 * Thanks Beda,
 * Is it possible without types_render_field ?
 * Just in wp_query?
 *  Anonymous User 14808221
 * (@anonymized-14808221)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/custom_fields-wp_query-2/#post-9055617)
 * the wp_query does not display fields, it queries posts, for later display it.
 * You can use any valid query argument for fields to get posts with those fields.
 * All Types fields have a prefix (wpcf-).
    This must be used in the meta_key argument
   of the wp_query to get posts with that Field.
 *  Thread Starter [doxy](https://wordpress.org/support/users/doxy/)
 * (@doxy)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/custom_fields-wp_query-2/#post-9059531)
 * Thanks Beda…
 * And How can i get the terms of the post?
 * created a new terms with the toolset.
 * How can I list the taxonomy terms in posts wp-query?
 * Example
    POST A title: Peter **term taxonomy: Animal –> cat**
 * POST B
    title: John **term taxonomy: Animal –> dog**
 * POST C
    title: Gary **term taxonomy: Animal –> cat**
 *  Anonymous User 14808221
 * (@anonymized-14808221)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/custom_fields-wp_query-2/#post-9060081)
 * Please refer to the DOC about Custom PHP Coding.
 * You can get the Terms with the native WordPress API and we have extensive DOC
   about how to use as well:
    [https://wp-types.com/documentation/customizing-sites-using-php/creating-templates-single-custom-posts/](https://wp-types.com/documentation/customizing-sites-using-php/creating-templates-single-custom-posts/)
   [https://wp-types.com/documentation/customizing-sites-using-php/creating-taxonomy-term-archives/](https://wp-types.com/documentation/customizing-sites-using-php/creating-taxonomy-term-archives/)
   [https://wp-types.com/documentation/customizing-sites-using-php/need-help-displaying-custom-content-using-php/](https://wp-types.com/documentation/customizing-sites-using-php/need-help-displaying-custom-content-using-php/)
   [https://codex.wordpress.org/Function_Reference/wp_get_post_terms](https://codex.wordpress.org/Function_Reference/wp_get_post_terms)
   [https://codex.wordpress.org/Function_Reference/get_term](https://codex.wordpress.org/Function_Reference/get_term)
 *  Thread Starter [doxy](https://wordpress.org/support/users/doxy/)
 * (@doxy)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/custom_fields-wp_query-2/#post-9066568)
 * Thanks @bedas 🙂
    -  This reply was modified 9 years, 1 month ago by [doxy](https://wordpress.org/support/users/doxy/).

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Custom_fields – Wp_query’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/types_ced1d3.svg)
 * [Toolset Types - Custom Post Types, Custom Fields and Taxonomies](https://wordpress.org/plugins/types/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/types/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/types/)
 * [Active Topics](https://wordpress.org/support/plugin/types/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/types/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/types/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [doxy](https://wordpress.org/support/users/doxy/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/custom_fields-wp_query-2/#post-9066568)
 * Status: resolved