Title: Hooks for Custom Post Type
Last modified: December 5, 2020

---

# Hooks for Custom Post Type

 *  Resolved [alantygel](https://wordpress.org/support/users/alantygel/)
 * (@alantygel)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/hooks-for-custom-post-type/)
 * Hi,
 * Your Custom Post Type feature + the Card Template Builder are really awesome.
   It is so cool that sometimes I need to do more and more customization 😉
 * I want to show a badge depending on the value of a custom taxonomy.
 * My first approach was to add a shortcode. However, the current $post->ID ends
   to be the templates ID, and not the post ID.
 * It would be really nice you could add a hook at the end of the render_callback.
   Another idea would be to add a “hook block”, so that we could add custom hooks
   at the template.
 * Thanks again for the great plugin!

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

 *  Plugin Support [dimned](https://wordpress.org/support/users/dimned/)
 * (@dimned)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/hooks-for-custom-post-type/#post-13798360)
 * Hi [@alantygel](https://wordpress.org/support/users/alantygel/)
    You may try 
   overriding the templates via \wp-content\plugins\getwid\includes\templates\custom-
   post-type\post.php Let us know if you have any further questions.
 *  Thread Starter [alantygel](https://wordpress.org/support/users/alantygel/)
 * (@alantygel)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/hooks-for-custom-post-type/#post-13835449)
 * Great, Dmytro, thanks for the answer.
 * Just to be sure: in this case, I’ll not be able anymore to use the getwid_template_part
   editor, right?
 *  Plugin Support [dimned](https://wordpress.org/support/users/dimned/)
 * (@dimned)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/hooks-for-custom-post-type/#post-13842653)
 * Hi [@alantygel](https://wordpress.org/support/users/alantygel/),
    You should 
   be able to use it too.
 *  Thread Starter [alantygel](https://wordpress.org/support/users/alantygel/)
 * (@alantygel)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/hooks-for-custom-post-type/#post-13848992)
 * Huh, now I’ve got a bit confused.
 * If I override `\wp-content\plugins\getwid\includes\templates\custom-post-type\
   post.php` in my theme, I’ll have to write the block template directly in HTML/
   CSS.
 * How can I use both the Template Part Editor and override the post.php to include,
   for example, custom taxonomies or any other feature depending on the post id?
 *  Plugin Support [dimned](https://wordpress.org/support/users/dimned/)
 * (@dimned)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/hooks-for-custom-post-type/#post-13870832)
 * Hi [@alantygel](https://wordpress.org/support/users/alantygel/),
    When you override
   the file you apply the changes to all post templates.
 *  Plugin Support [dimned](https://wordpress.org/support/users/dimned/)
 * (@dimned)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/hooks-for-custom-post-type/#post-14216043)
 * We could not hear anything back for a while so we close this topic

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

The topic ‘Hooks for Custom Post Type’ 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/)

## Tags

 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)
 * [hook](https://wordpress.org/support/topic-tag/hook/)

 * 6 replies
 * 2 participants
 * Last reply from: [dimned](https://wordpress.org/support/users/dimned/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/hooks-for-custom-post-type/#post-14216043)
 * Status: resolved