How to Publish to WordPress Via Code

____________________

 

Publishing to WordPress Via Code: Overview

 

This publishing method will allow you to upload your blogs to your website in scenarios, for example when:

  • The plugin method isn’t possible due to connection issues

  • You need to publish to multiple websites

  • Your website hasn’t been launched or it’s in staging/testing mode

  • You want to post your blog in a different section of your website (like “Pages” instead of the “Post” section)

 

____________________

 

Setting Your Publishing Details

Once you have completed designing your post and you are ready to publish manually to your WordPress website, you’ll need to have your publishing details saved.

 

If you haven’t done this yet, follow the steps below to get this set up:

 

1. Click on the gear icon to open the publishing settings

 

 

 

2. When you see the publishing settings window open:

 

2.1 Input your website's URL - eg www.mywebsite.co

2.2 Click on Other

2.3 Type Wordpress and press continue

 

3. Once publishing settings have been saved/ updated click “Ok/ Start Publishing ”

 

 

 

 

4. If this is the first time publishing, your blog will now start uploading, click here for the next steps. If that’s not the case, click Publish to start uploading your blog.

 

 

 

____________________

 

How to Publish to WordPress Via Code

1. Once the upload of your blog is complete, click Copy Link to copy your post's HTML to your clipboard.

2. Log into your WordPress website.

 

3. Navigate to the post or page where you would like the blog to be placed. 

 

👉 If you are using the Classic Editor, continue with the steps here

 

👉 If you are using Gutenberg, continue with the steps below

 

 

 

Gutenberg

1. Add the title of your post

 

2. To add your Publish Post hover over "Add Text..." and click the plus icon

 

3. Search for "Custom HTML" and then click it, to add it to your page.

 


4. Now Paste the code that you copied from Publish. 

 

5. Click the preview to see your blog. 

 

Your blog should now load and be fully published! Once you are happy with how it looks, make your blog live and you should be good to go.

 

 

Classic editor

1. To add your Narrative Publish post, click the text editor tab.

 

2. Paste the link you copied from your Narrative Publish post.

 

3. Press Preview to view your post. 

 

Your blog should now load and be fully published! Once you are happy with how it looks, make your blog live and you should be good to go.

 

____________________

 

How to Publish Via Code When Having the Plugin Already Set Up

Setting Your Publishing Details to Via Code If You Have the Plugin Already Set Up

 

If you already have the plugin set up but want to publish via code, there is a quicker and simpler way to do it than the steps above. 

 

To do this, change the Publish category from the current category to Publish via Code and click "Publish" to start uploading your blog. Click here for the next steps.

____________________

 

Related Articles:

 

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.