{"id":1932,"date":"2021-07-12T15:58:58","date_gmt":"2021-07-12T13:58:58","guid":{"rendered":"https:\/\/coincharge.os24.work\/lightning-publisher-for-wordpress\/"},"modified":"2021-07-27T23:07:05","modified_gmt":"2021-07-27T21:07:05","slug":"lightning-publisher-for-wordpress","status":"publish","type":"post","link":"https:\/\/coincharge.io\/en\/lightning-publisher-for-wordpress\/","title":{"rendered":"Lightning Publisher for WordPress"},"content":{"rendered":"<div class=\"wpb-content-wrapper\">[vc_row][vc_column][vc_row_inner][vc_column_inner][vc_column_text]Anyone who runs a blog based on WordPress has the option to offer pages and blog posts for a fee.<\/p>\n<p>With the help of Lightning payments, payments can be settled per page or per post (pay-per-post).<\/p>\n<p>This post explains how to charge for individual articles, posts and post with the help of WordPress plugin &#8220;Lightning Publisher for WordPress&#8221;.<\/p>\n<p>In the article &#8220;<a href=\"https:\/\/coincharge.io\/en\/payment-per-newspaper-article-with-bitcoin-lightning\/\">Payment per Newspaper Article with Bitcoin Lightning<\/a>&#8221; we present other solutions that can be used to implement Lightning Paywall solutions.[\/vc_column_text][\/vc_column_inner][\/vc_row_inner][vc_row_inner][vc_column_inner][vc_column_text]\n<h2>Offer Lightning payment per newspaper article<\/h2>\n<p>To offer news, articles and contributions for a fee, you need the following tools.<\/p>\n<ul>\n<li>Own BTCPayServer<\/li>\n<li>Lightning Node<\/li>\n<li>C-Lightning implementation<\/li>\n<li>Lightning Charge <a href=\"https:\/\/github.com\/ElementsProject\/lightning-charge\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/ElementsProject\/lightning-charge<\/a><\/li>\n<li>WordPress mit dem Addon Lightning Publisher f\u00fcr WordPress: <a href=\"https:\/\/wordpress.org\/plugins\/lightning-publisher\/\" target=\"_blank\" rel=\"noopener\">https:\/\/wordpress.org\/plugins\/lightning-publisher\/<\/a><\/li>\n<\/ul>\n<p>The first 4 points, you get if you set up your own BTCPay server with C-Lightning implementation. A tutorial on how to run your own BTCPay server can be found in the following article \u201e<a href=\"https:\/\/coincharge.io\/en\/lunanode-hosting\/\">LunaNode Hosting<\/a>\u201e. With this, you have all the requirements to be able to invoice your contributions provided via WordPress.[\/vc_column_text][\/vc_column_inner][\/vc_row_inner][vc_row_inner][vc_column_inner][vc_column_text]\n<div class=\"wpb_text_column wpb_content_element \">\n<div class=\"wpb_wrapper\">\n<h2>WordPress Plugin \u201eLightning Publisher for WordPress\u201c<\/h2>\n<p>Besides WordPress, the WordPress plugin &#8220;Lightning Publisher for WordPress&#8221; is also required.<\/p>\n<\/div>\n<\/div>\n[\/vc_column_text][\/vc_column_inner][\/vc_row_inner][vc_row_inner][vc_column_inner width=&#8221;1\/2&#8243;][vc_single_image image=&#8221;1947&#8243; img_size=&#8221;full&#8221;][\/vc_column_inner][vc_column_inner width=&#8221;1\/2&#8243;][vc_column_text]This plugin can be selected via the search on WordPress.<\/p>\n<p>Man kann es auch direkt von der Github Seite <a href=\"https:\/\/github.com\/ElementsProject\/wordpress-lightning-publisher\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/ElementsProject\/wordpress-lightning-publisher<\/a> runterladen.<\/p>\n<p>After installing and activating the plugin, it is available in the WordPress administration area under Settings &gt; Lightning Publisher.[\/vc_column_text][\/vc_column_inner][\/vc_row_inner][vc_row_inner][vc_column_inner width=&#8221;1\/2&#8243;][vc_column_text]At this point, the URL and API token of the Lightning Charge server must be stored.[\/vc_column_text][\/vc_column_inner][vc_column_inner width=&#8221;1\/2&#8243;][vc_single_image image=&#8221;1945&#8243; img_size=&#8221;full&#8221;][\/vc_column_inner][\/vc_row_inner][vc_row_inner][vc_column_inner][vc_column_text]We can find these anbagben in our BTCPay server. However, this requires that C-Lightning (instead of LND) has been selected as Lightning Node when setting up the BTCPay server.[\/vc_column_text][\/vc_column_inner][\/vc_row_inner][vc_row_inner][vc_column_inner width=&#8221;1\/2&#8243;][vc_single_image image=&#8221;1943&#8243; img_size=&#8221;full&#8221;][\/vc_column_inner][vc_column_inner width=&#8221;1\/2&#8243;][vc_column_text]We go to our BTCPay server in the Server Settings section. There under Services and Lightning Charge Services. In the Credential section we can find the required information.[\/vc_column_text][\/vc_column_inner][\/vc_row_inner][vc_row_inner][vc_column_inner width=&#8221;1\/2&#8243;][vc_column_text]The information from the server in the AuthendicatedUri field is entered in the Server Url field. The information from Uri goes to Public URL and the APIToken goes to API token.<\/p>\n<p>Then Save Changes and the configuration is ready.[\/vc_column_text][\/vc_column_inner][vc_column_inner width=&#8221;1\/2&#8243;][vc_single_image image=&#8221;1941&#8243; img_size=&#8221;full&#8221;][\/vc_column_inner][\/vc_row_inner][vc_row_inner][vc_column_inner][vc_column_text]\n<div class=\"wpb_text_column wpb_content_element \">\n<div class=\"wpb_wrapper\">\n<h2>Article provided with payment barrier.<\/h2>\n<p>After all the technical requirements for setting a paywall have been met, we will create an article that will be offered for a fee.<\/p>\n<p>On this page we will show you how to add a Lightning Publisher for WordPress paywall to your WordPress article.<\/p>\n<\/div>\n<\/div>\n[\/vc_column_text][\/vc_column_inner][\/vc_row_inner][vc_row_inner][vc_column_inner width=&#8221;1\/2&#8243;][vc_single_image image=&#8221;1939&#8243; img_size=&#8221;full&#8221;][\/vc_column_inner][vc_column_inner width=&#8221;1\/2&#8243;][vc_column_text]To do this, go to a post and switch to the text view.[\/vc_column_text][\/vc_column_inner][\/vc_row_inner][vc_row_inner][vc_column_inner][vc_column_text]\n<div class=\"wpb_text_column wpb_content_element \">\n<div class=\"wpb_wrapper\">\n<p>In the text view you go to the place, from which the contribution is to become liable to pay costs.<\/p>\n<p>At this point you insert the shortcode: <code>[ifpaid AMOUNT CURRENCY]<\/code><\/p>\n<p>For Amount you enter the amount and for Currency the corresponding currency. Please place the square brackets flush with the text. We had to insert a space here to describe the code. Otherwise, the rest of the text would have disappeared behind a paywall. So please do not insert a space after the <code>[ifpaid XXX]<\/code><\/p>\n<p>For example, you can offer the post for 5 cents, then you need to enter <code>[ ifpaid 0.05 EUR ]<\/code>. If you want to charge the item for 5 satoshi, then you enter <code>[ ifpaid 0.00000005 BTC ]<\/code>.<\/p>\n<p>You can also display a specific text and label the corresponding pay button.<\/p>\n<p><code>[ ifpaid 0.05 EUR text=\"F\u00fcr nur 5 Cent kannst Du den ganzen Artikel lesen\" button=\"Jetzt mit Bitcoin Lightning bezahlen\" ]<\/code><\/p>\n<\/div>\n<\/div>\n[\/vc_column_text][\/vc_column_inner][\/vc_row_inner][vc_row_inner][vc_column_inner width=&#8221;1\/2&#8243;][vc_column_text]In the article it then looks like this:[\/vc_column_text][\/vc_column_inner][vc_column_inner width=&#8221;1\/2&#8243;][vc_single_image image=&#8221;1937&#8243; img_size=&#8221;full&#8221;][\/vc_column_inner][\/vc_row_inner][vc_row_inner][vc_column_inner width=&#8221;1\/2&#8243;][vc_single_image image=&#8221;1935&#8243; img_size=&#8221;full&#8221;][\/vc_column_inner][vc_column_inner width=&#8221;1\/2&#8243;][vc_column_text]When the reader clicks on the &#8220;Pay now with Bitcoin Lightning&#8221; button, the following payment window opens:[\/vc_column_text][\/vc_column_inner][\/vc_row_inner][vc_row_inner][vc_column_inner][vc_column_text]After a successful payment, the page is called again and displayed in full length.<\/p>\n<p>Besides the solution of &#8220;<a href=\"https:\/\/coincharge.io\/en\/lightning-publisher-for-wordpress\/\"><strong>Lightning Publisher for WordPress<\/strong><\/a>&#8221; presented here, there are other solutions for WordPress and also alternative solutions.<\/p>\n<p>For an overview of the different ways to pay for your contribution or link using a Lightning paywall, see: <a href=\"https:\/\/coincharge.io\/en\/payment-per-newspaper-article-with-bitcoin-lightning\/\">Zahlung je Zeitungsartikel mit Bitcoin Lightning<\/a>[\/vc_column_text][\/vc_column_inner][\/vc_row_inner][\/vc_column][\/vc_row]\n<\/div>","protected":false},"excerpt":{"rendered":"<p>[vc_row][vc_column][vc_row_inner][vc_column_inner][vc_column_text]Anyone who runs a blog based on WordPress has the option to offer pages and blog posts for a fee. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[47,47],"tags":[78,83,81],"class_list":{"0":"post-1932","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-lightning-en","8":"tag-lightning-paywall-en","9":"tag-lightning-publisher-en","10":"tag-wordpress-en"},"_links":{"self":[{"href":"https:\/\/coincharge.io\/en\/wp-json\/wp\/v2\/posts\/1932","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coincharge.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coincharge.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coincharge.io\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coincharge.io\/en\/wp-json\/wp\/v2\/comments?post=1932"}],"version-history":[{"count":51,"href":"https:\/\/coincharge.io\/en\/wp-json\/wp\/v2\/posts\/1932\/revisions"}],"predecessor-version":[{"id":5608,"href":"https:\/\/coincharge.io\/en\/wp-json\/wp\/v2\/posts\/1932\/revisions\/5608"}],"wp:attachment":[{"href":"https:\/\/coincharge.io\/en\/wp-json\/wp\/v2\/media?parent=1932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coincharge.io\/en\/wp-json\/wp\/v2\/categories?post=1932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coincharge.io\/en\/wp-json\/wp\/v2\/tags?post=1932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}