Creating a post object field

Home / Custom Code / Creating a post object field
29JulCreating a post object field

The post object field contains options to customize your field:

  • Post type: You can filter the choices by selecting post types.
  • Filter from Taxonomy: You can filter the choices even more by selecting specific taxonomies / categories
  • Multiple: By ticking the multiple option, the select field will now allow multiple selections and the API will return an array instead of a single value.
  • Allow Null?: If selected, the select list will begin with a null value titled “- Select -”

[snippet id=526]

Leave a Reply


HGS Infotech is the fastest growing and professionally managed Website Designing, Website Development, and Digital Marketing.

Follow Us:


Join our mailing list to receive new Update and announcements

Copyright © 2011-21 All rights reserved.  Hgs Infotech

Privacy Policy     |      Terms