Plugin Author
Nicola Mustone
(@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.
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
Nicola Mustone
(@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
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
Nicola Mustone
(@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: http://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.