• Resolved scottyartz

    (@scottyartz)


    Screenshot

    Hopefully this link shows up for you guys. But as you can see, I added the custom code in the functions.php and just trying to figure out where I went wrong. The plugin works just fine when I make regular posts but not comic posts. Even though I added the ‘comic’ slug for it.

    Would love to have this fixed if possible! Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Nico

    (@nicolamustone)

    Automattic Happiness Engineer

    Hey @scottyartz,
    It’s not an issue with the theme but with WP Discord Post. I’m aware of it and there’s already a fix in place.

    It will be included in the next version of the plugin that I will release shortly, I’m testing it to make sure that everything works properly.

    I’ll mark this topic as solved for now.

    Thread Starter scottyartz

    (@scottyartz)

    Thank you!

    Thread Starter scottyartz

    (@scottyartz)

    Can’t tell if the latest update included this fix but unfortunately it’s still not working for me. Does it absolutely have to be in just a parent folder? I had the code in both the original functions.php file in the comicpress theme folder and the childtheme folder but still no dice.

    Plugin Author Nico

    (@nicolamustone)

    Automattic Happiness Engineer

    What post type are you using? Is it from a plugin? If yes, which one?

    Please send me the code you are using. You can use https://pastebin.com/ or https://gist.github.com/ to share the code

    Thread Starter scottyartz

    (@scottyartz)

    The post type is ‘comic’. Comicpress uses the comic easel plugin as an archive plugin if that helps. I’m assuming this is related to the problem.

    https://pastebin.com/hYWvd0Ff here’s the link.

    Plugin Author Nico

    (@nicolamustone)

    Automattic Happiness Engineer

    Thanks for the code!

    I tested the code with the theme Storefront and this code:

    function codex_custom_init() {
         $args = array(
           'public' => true,
           'label'  => 'Comics'
         );
         register_post_type( 'comic', $args );
     }
     add_action( 'init', 'codex_custom_init' );
     add_action('publish_comic', array( WP_Discord_Post::instance()->post, 'send_post' ), 10, 2 );

    The content sent to Discord is this: https://d.wedj.at/lhu3Si

    I’m not sure why it is not working with Comicpress, but most probably they have more code that is in conflict with the plugin.

    I’d suggest you contact the author and ask them to check, I do not have access to their theme.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom Post type not working with comicpress theme’ is closed to new replies.