Title: Query/Feature request &#8211; Custom Post Block
Last modified: September 10, 2020

---

# Query/Feature request – Custom Post Block

 *  Resolved [jamieplexus](https://wordpress.org/support/users/jamieplexus/)
 * (@jamieplexus)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/query-feature-request/)
 * I would like to be able to assign each post in the custom post type a class based
   on the categories associated with that post. Is this possible at the moment? 
   Or is there some way I could associate the custom post block template with a 
   file in child Theme so I could write the template used?
 * Alternatively,is this something that could be added to the base template? I’m
   sure having class selectors based on the associated categories in the Custom 
   Post Block would be useful to other developers.
    -  This topic was modified 5 years, 8 months ago by [jamieplexus](https://wordpress.org/support/users/jamieplexus/).

Viewing 1 replies (of 1 total)

 *  Plugin Support [dimned](https://wordpress.org/support/users/dimned/)
 * (@dimned)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/query-feature-request/#post-13391298)
 * Hi [@jamieplexus](https://wordpress.org/support/users/jamieplexus/),
    Thanks 
   for your question. It is possible to override the following file in order to 
   add custom classes including name, the id of taxonomy
 * \wp-content\plugins\getwid\includes\templates\custom-post-type\post.php
 * You will need to copy the file to the following destination to keep the changes
   after the plugin update.
 * \wp-content\themes\_your-active-theme_\getwid\custom-post-type\post.php
 * Let me know if it is helpful.

Viewing 1 replies (of 1 total)

The topic ‘Query/Feature request – Custom Post Block’ is closed to new replies.

 * ![](https://ps.w.org/getwid/assets/icon.svg?rev=2238400)
 * [Getwid - Gutenberg Blocks](https://wordpress.org/plugins/getwid/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/getwid/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/getwid/)
 * [Active Topics](https://wordpress.org/support/plugin/getwid/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/getwid/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/getwid/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [dimned](https://wordpress.org/support/users/dimned/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/query-feature-request/#post-13391298)
 * Status: resolved