No posts withj WP Script Theme
Closed this issue · 6 comments
Hello,
i have installed the Mastodon Wordpress Plugin and use with a WP Script Theme.
I want to autopost embbed video posts.
But the Plugin does not work for me. Also all other Mastodon Plugins don't work.
I can select "Videos" in the settings, but it has no effect.
I also enabled the debug, but there was no entry for this plugin.
Looked like it was not called after publishinig a new post.
br
Christian
With the filter from the other issue
add_filter( 'share_on_mastodon_enabled', '__return_true', 999 );
it works too.
That would indicate the checkbox isn't checked (or even displayed) on the Post Edit screen. Kind of looks like this (when using the Classic Editor):
If your post type uses the Block Editor, it looks almost the same and should appear under the Post tab in the Settings column.
(Ignore the different language, image is from another site.)
Perhaps your post type has somehow disabled these "meta boxes"; if so, using the filter is a valid workaround/solution. (If needed, it can be made smarter, too, but that requires a bit of PHP knowledge.)
Maybe the flag is "too late" during the automisation.
I see. Yes, due to how things are implemented, the flag (even though it appears checked) is only saved if the Edit Screen form is actually submitted (i.e., the Publish or Save Changes button pressed).
For posts that are published automatically or created through a 3rd-party app, the filter is needed.
thanks for clarifying.