Today I played with this WordPress Crosspost plugin in an effort to keep my original WordPress.com blog up to date with this self-hosted one.
Configuration was a little strange since you install the plugin (which didn’t show in the Add Plugin search under it’s name; I had to just enter “crosspost” and then it was on the list), but you configure it in your main WP Settings menu, as it gets added as an item.
It wanted a Client ID and Client Secret which were nowhere to be found at WordPress.com. Turns out you have to create an Application for them under the Developer pages. Go there and click App.
I was thinking it needed to start at the WordPress.com page but when I tried to use that address in the link I got a warning that wordpress couldn’t be in the URL. What?! Turns out the redirect URL ends up at my self-hosted site looking down the folder names into wp-admin/options-general.php?page=wp_crosspost_settingsetcetera, and the other URL seems to be selected when you link to it from a pop up menu (since both of these logins are linked through a WordPress account, I can choose which site I am editing, viewing or in this case, cross posting too.)
Once the application was given a somewhat valid url it added the directory info and gave me the Client ID and secret code. That gets input in the Settings>WordPress Crosspost configuration screen, then you save it and it validates.
This took a couple of tries as early attempts returned an invalid redirect error, so I edited the URL in the new app I created to reflect the other site. When I finally had it that menu popped up to let me choose the site to crosspost to.
TIP: Open multiple browser windows so you can easily switch between configuration pages you are adding and copying to, plus one with your support pages for reference.
So then I got cocky and thought it would work even though I still had a RED Warning box telling me to “Click here to connect to WordPress.com”. I hadn’t logged in with the wordpress.com username? The test post failed. Changed the user login and still couldn’t get the red warning to go away.
Thought maybe I had to repeat the Create app process from the CORRECT login. Went to the develop page to sign out and log in as the wordpress.com user, then go back to the develop page (since it takes you to a default WP account page when you log in.)
But the app I had created was there on the list already! So I clicked on manage users and gave permission to the WordPress.com user too. It already had it. After some editing got an error indicating as invalid Client ID. Okay. Created another app and also set type to Native not Web. Tried using the WP.com url first.
“Your redirect URL may not contain WordPress in it.” Changed to self-hosted URL”
Arg. Tried again as new site URL and Web not Native. Copied the long url string for the redirect URL from the one the early app attempt created. Might be created automatically but this way it already had the right string.
However this may have been the subtle creation difference:
I went to my self-hosted WordPress site Settings>Wordpress Crosspost page and refreshed the page.
TIP: Hold Control down while hitting the F5 key or clicking refresh. Do this when you think your browser may be holding on to outdated information or pages (like an old key?)
Then I clicked the Connect button. When the site choice page appeared, I first clicked at bottom to log in as different user (WP.com) and when it came back — even though it still said I was logged in as the other user — I chose the WP.com site and authorized. Eureka!
Once you log in successfully you see the WordPress Crosspost Settings page and can access the rest of the options.
Choose at least one default WordPress site to crosspost to, an option that is highlighted if not already set.
Use the Default blog choice in the top colored box, not the next line (Sync posts from WordPress.com – experimental) That seems to be a way to use the same plugin to send info back to (in my case) your self-hosted blog. One crazy experiment at a time for me!
Set any other preferences and click “Save Changes.”
So if this post shows up in both spots, then I appear to know what I am doing (which is almost as good as actually knowing what you are doing as long as everything works and you still have all your fingers.)
And if you update your post, it appears to update the crosspost too!
WordPress Developer pages
Plugin details https://wordpress.org/plugins/wp-crosspost/
Screenshot walkthrough https://wordpress.org/plugins/wp-crosspost/screenshots/
Obtaining a Client ID https://auth0.com/docs/connections/social/wordpress