• Resolved alantygel

    (@alantygel)


    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

    (@dimned)

    Hi @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

    (@alantygel)

    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

    (@dimned)

    Hi @alantygel,
    You should be able to use it too.

    Thread Starter alantygel

    (@alantygel)

    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

    (@dimned)

    Hi @alantygel,
    When you override the file you apply the changes to all post templates.

    Plugin Support dimned

    (@dimned)

    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.