# How to setup google doc to Wordpress post

**URL:** <https://community.make.com/t/how-to-setup-google-doc-to-wordpress-post/12752>\
**Category:** Questions\
**Created:** [July 2, 2023, 4:28am UTC](https://community.make.com/t/how-to-setup-google-doc-to-wordpress-post/12752 "2023-07-02T04:28:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![TonyT](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@TonyT](https://community.make.com/u/TonyT)\
**Post date:** [July 2, 2023, 4:28am UTC](https://community.make.com/t/how-to-setup-google-doc-to-wordpress-post/12752/1 "2023-07-02T04:28:50Z")

</div>

I’ve made a Scenario setup like this, Google drive (watch a specific folder) \> Google Doc (Get Content of a Document) \> Wordpress (Create a Post). It worked but a few things I gotta try to figure out.

1. How to get it to post the html of the google doc (h2, h3), for the wordpress content area

2. How do I create an area for the Excerpt from a google doc?

3. How do I create an area for the Slug from the google doc (sometimes it can be different from the title)?

4. How do I make it so that if I make changes to the google doc, it will update the wp post.

---

<div class="post-metadata">

**Author:** ![DavidGurr\_Make](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/davidgurr_make/32/4624_2.png) [@DavidGurr\_Make](https://community.make.com/u/DavidGurr_Make)\
**Post date:** [July 3, 2023, 10:55am UTC](https://community.make.com/t/how-to-setup-google-doc-to-wordpress-post/12752/2 "2023-07-03T10:55:39Z")

</div>

Hey Tony, good questions!

The `Get Content of a Document` module returns an array of “Structural Elements” named `Content`, which can be paragraphs, section breaks, tables or ToC entries. You’d need to iterate through this array and pick out the Structural Elements that apply - probably only paragraph elements.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/0/05610ddbd64eb9ec7b32ca7333f4640e1d15ef6b.png)

You’d then want to map the Paragraph Style for that Structural Element to the corresponding HTML tag. For that, you could use a mapping table in a Data Store.

It’s going to be quite a bit of work … mainly because Google Docs isn’t really an HTML editor.

If you don’t have to stick with Google Docs, it would be much better (and simpler) to use a real HTML editor to create your source document.

---

<div class="post-metadata">

**Author:** ![TonyT](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@TonyT](https://community.make.com/u/TonyT)\
**Post date:** [July 3, 2023, 1:41pm UTC](https://community.make.com/t/how-to-setup-google-doc-to-wordpress-post/12752/3 "2023-07-03T13:41:01Z")

</div>

surely there’s an easier way to just parse the text to html when it feeds it into wordpress. Google doc is easier to handle since I’m sharing that folder with a bunch of writers.

---

<div class="post-metadata">

**Author:** ![TonyT](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@TonyT](https://community.make.com/u/TonyT)\
**Post date:** [July 3, 2023, 2:47pm UTC](https://community.make.com/t/how-to-setup-google-doc-to-wordpress-post/12752/4 "2023-07-03T14:47:35Z")

</div>

i tried also doing what you mention but all I’m getting on the wordpress end is shortcodes in the content area of the post.

---

<div class="post-metadata">

**Author:** ![DavidGurr\_Make](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/davidgurr_make/32/4624_2.png) [@DavidGurr\_Make](https://community.make.com/u/DavidGurr_Make)\
**Post date:** [July 3, 2023, 3:11pm UTC](https://community.make.com/t/how-to-setup-google-doc-to-wordpress-post/12752/5 "2023-07-03T15:11:13Z")

</div>

Unfortunately you can’t just parse the text to html - each Structural Element is stored separately, and each Paragraph Style is held as a separate collection. It’s not held inline, so you can’t just parse it.

It’s a feature of how the Google Docs API works - Make just presents it in the same way.

One alternative would be to use the Google Drive `Download a File` module. Using the Advanced Settings on that module you can make it download the file in HTML format - which you could then simply upload to WordPress.

But that file might have a **lot** of extra HTML tags in it - you can get a sense of what’s produced by accessing your file in a browser as `https://docs.google.com/document/d/<DOCID>/export?format=html`

---

<div class="post-metadata">

**Author:** ![TonyT](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@TonyT](https://community.make.com/u/TonyT)\
**Post date:** [July 3, 2023, 7:20pm UTC](https://community.make.com/t/how-to-setup-google-doc-to-wordpress-post/12752/6 "2023-07-03T19:20:51Z")

</div>

I forgot to mention that I managed to do this through Chat GPT and it worked but it stopped after a certain amount of text. I wonder why that keeps happening? Is there a limitation on the amount of text?

---

<div class="post-metadata">

**Author:** ![TonyT](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@TonyT](https://community.make.com/u/TonyT)\
**Post date:** [July 4, 2023, 1:16am UTC](https://community.make.com/t/how-to-setup-google-doc-to-wordpress-post/12752/7 "2023-07-04T01:16:06Z")

</div>

this seems ([https://www.make.com/en/help/app/markdown](https://www.make.com/en/help/app/markdown)) to be able to do cleaning of the html but I can’t quite figure out how to use it with google doc to wordpress.

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [December 7, 2023, 5:19pm UTC](https://community.make.com/t/how-to-setup-google-doc-to-wordpress-post/12752/8 "2023-12-07T17:19:40Z")

</div>


