{"id":9049,"date":"2015-04-22T12:01:19","date_gmt":"2015-04-22T18:01:19","guid":{"rendered":"http:\/\/macblaze.ca\/?p=9049"},"modified":"2015-04-22T09:45:17","modified_gmt":"2015-04-22T15:45:17","slug":"crossposting-and-crontab","status":"publish","type":"post","link":"https:\/\/macblaze.ca\/?p=9049","title":{"rendered":"Crossposting and Crontab"},"content":{"rendered":"<p>About 15 minutes after I\u00a0wrote the below post my dissatisfaction with that\u00a0plugin and Jetpack&#8217;s Publicize (which posts to social media like Facebook and Twitter) sent me looking for an all-in-one solution. The most popular plugin seemed to be <a href=\"https:\/\/wordpress.org\/plugins\/social-networks-auto-poster-facebook-twitter-g\/\" target=\"_blank\">SNAP<\/a> (Social Networks Auto Poster), so I gave it a try. It does require you to create an app in both Facebook&#8217;s and Twitter&#8217;s developer pages but the step-by-step instructions were detailed and flawless.<\/p>\n<p>As a result I now am using the plugin on neverforever.ca and it auto-posts all new content to all three (and more if I want) sites.<\/p>\n<p>Slick-er<\/p>\n<blockquote><p>I have been neglecting this blog after a great start to the year&#8230; sigh. It was mostly a conflation of an\u00a0issue of the magazine, buying a boat and then setting up another blog for the boat. I have read a lot of boat blogs leading up to our decision and thought I would document our &#8216;journey&#8217; for the edification of others.<\/p>\n<p>Anyway one of the things I wanted to set up to help alleviate the problem was a way to post to both blogs at once. When we get going it is unlikely I will have the time or bandwidth to maintain both blogs. My initial attempt is using a plugin called <a href=\"http:\/\/feedwordpress.radgeek.com\/\" target=\"_blank\">feedwordpress<\/a>. What it does is allow this blog (macblaze.ca) to monitor the RSS feed from <a href=\"http:\/\/neverforever.ca\" target=\"_blank\">neverforever.ca<\/a> and then, when a new post appears, syndicate (repost) it here.<\/p>\n<p>It&#8217;s not the simplest interface I have come across and so far the bells and whistles don&#8217;t seem to functioning as advertised but the basic premise is ok. The big\u00a0issue was I couldn&#8217;t get it to do it automatically without <a href=\"http:\/\/feedwordpress.radgeek.com\/wiki\/how-do-i-set-up-a-cron-job-to-check-my-feeds-for-updates\/\" target=\"_blank\">digging through the wiki<\/a>. It seems I needed to set up a cronjob on my web server. Now I am pretty lucky and my server has a great interface. I just went to the crontab button and added the command:<\/p>\n<pre><code> *\/10 * * * * \/usr\/bin\/curl --silent http:\/\/macblaze.ca\/?update_feedwordpress=1<\/code><\/pre>\n<p>And then I added a test post and voila! What this does is tells the server to go to the url\u00a0&#8220;macblaze.ca\/?update_feedwordpress=1&#8221;\u00a0every 10 minutes. By doing that the plugin does an update on the RSS feed and then posts anything new.<\/p>\n<p>Slick.<\/p>\n<p>The issues comes with the options to control the post categories and post authors. To date I haven&#8217;t been able to make those options work. But I&#8217;ll keep trying. And I will have to remember to remove the cron job if I dump this particular plugin.<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>About 15 minutes after I\u00a0wrote the below post my dissatisfaction with that\u00a0plugin and Jetpack&#8217;s Publicize (which posts to social media like Facebook and Twitter) sent me looking for an all-in-one solution. The most popular plugin seemed to be SNAP (Social Networks Auto Poster), so I gave it a try. It does require you to create [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts\/9049"}],"collection":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9049"}],"version-history":[{"count":0,"href":"https:\/\/macblaze.ca\/index.php?rest_route=\/wp\/v2\/posts\/9049\/revisions"}],"wp:attachment":[{"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9049"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9049"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/macblaze.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}