I have a question regarding the specifications. When I changed the title
in the YAML syntax after pushing a file, a new post was created. Is this the intended behavior? Initially, when I created the post with the title
set to “aaa” in the YAML syntax, the post titled “aaa” was published, which is normal. However, when I changed the title
to “bbb” midway, a new post titled “bbb” was created, while the post titled “aaa” remained. I thought that the post titled “aaa” would be updated to “bbb” instead.
When looking at the GitHub webhook logs, I see both saneyoshi.txt
and saneyoshi.md
:
"added": [ "saneyoshi.txt" ],
"added": [ "saneyoshi.md" ],
However, when checking the Git it Write logs, only saneyoshi.txt
is present. Of course, this file is being skipped due to Allowed file types - md
.
What I am struggling with is: why is saneyoshi.md
not appearing in the Git it Write logs?
i have 2 repos created, one for post, one for page. the one for post works perfectly, but the one for page only works with manual pull. I have double checked the webhook from github, it seems the webhook is created successfully and delivered. but nothing shows up on the giw side for the pages repo.
ignore this thread. it was a webhook misconfiguration. great plugin!
]]>I checked the FAQ but there is nothing about edit Pages of WordPress in Git it Write. So is it possible to edit Pages directly from Git?
]]>I think setting a fixed post time in markdown is very interesting feature. If we have this feature, the very time I update a post, the update time of the post is not change. It is very convinent to keep the post’s time unchanged.
]]>I am encountering an issue with the structure in my Git repository, which is organized as follows:
de/
src/
XXX.md
...
build/
slides/
XXX.html
...
XXX.html
...
When I enter "de" in the "Edit repository settings / Folder to publish from" section, it reads in all files from both the "src" and "build" directories. However, I want to only read in files from the "src" directory. Yet, when I input "de/src" into the "Edit repository settings / Folder to publish from", it doesn't read in any files.
What should I do to ensure that only the "src" directory is being read in?
]]>
I′ve been using your plugin git it write, it allows me to upload almost 30000 blogs in the last week, thank you for that. Now I’m updating the blogs with backlinks but ran into this error;
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 8192 bytes) in /wordpress/core/6.4.1/wp-includes/class-wpdb.php on line 2320
I already tried deactivating all the other plugins, clearing the cache and updating the blogs in small batches but the error continues to pop up.
Thanks in advance for your help.
]]>For example, some tutorials are written for a certain software. With the release of the new version of the software, the tutorial also needs to be updated, but at the same time, the old version of the tutorial will be useful for old versions. Can I show selected git tag in WP like WP revisions?
Also, is there a setting to disable image upload or exclude specific domains? I have already changed the WP media upload flow to sharex -> upload to ftp -> paste img URL.
]]>Hey Aakash!
I hope you’re doing well! I had a question. Is it possible to set the language of a post using a YAML variable and for it to synch with the plugin Polylang? See the screenshot, that’s where you would set the language in the WP editor. Maybe there is a way, since you can set all the other variables above, such as tags, featured image, etc.
I know this is super specific, and it probably won’t be possible, but I just wanted to ask, maybe I’m missing something and there is an easy way to do this.
Thanks allot!
Daniel
Hi
Does Git-it-write plugin supports also Woocommerce? Can I create/add ‘products’ with git?
]]>Hey Aakash,
similar to the report of another user on this forum, the webhook does not work, I’m also getting the same error 500:
{"code":"internal_server_error","message":"<p>There has been a critical error on this website.<\/p><p><a href=\"https:\/\/www.ads-software.com\/support\/article\/faq-troubleshooting\/\">Learn more about troubleshooting WordPress.<\/a><\/p>","data":{"status":500},"additional_errors":[]}
I should also add that the payload was not very large, just a few posts. It did also contain an image, but that image also wasn’t very big. Would love to see this fixed whenever you get a chance!
All the best
Daniel
Hey Aakash,
I was wondering why doesn’t this line work in my YAML:
comment_status: open
I’m trying to allow some posts to have comments while others don’t. Every time I synch post changes to WordPress, comments for the posts are disabled, and I have to enable them manually again. Is there a way to avoid this?
Thanks!
]]>How to copy only one md file data, not full directory
Like
docs\
guide\
introduction.md
getting-started.md
help\
faq.md
in all these File I just want to pull data of introduction.md
]]>Hello Aakash,
is there any variable I can add to my YAML that will make the post sticky?
Thank you!
]]>Hey Aakash!
I have a problem with links. I am using obsidian to locally edit my markdown files. Obsidian generates links in this format:
[My Blog Post](my-blog-post.md)
If I manually add the “./” to the Link -> [My Blog Post](./my-blog-post.md)
the links gets properly processed by your plugin and works on my WordPress site, but not locally in my obsidian vault.
Is there any way to process links that are in the same directory, without “./” ?
Thank you!
]]>I was wondering if it is possible to schedule posts using the metadata attributes, I couldn’t get this to work, this is my YAML:
—
title: Test pending
taxonomy:
category:
– Blog
post_tag:
– pain
– capitalism
custom_fields:
post_status: “future”
post_date: “2022-08-27 18:00:00”
—
Is this possible? If so, what am I doing wrong? Thanks!
]]>Hey Aakash,
Thank you for creating this plugin!
I’m having trouble getting the Links to translate properly from my MD files to WordPress. I’m using standard Markdown links, using the “./” notation you suggested to link files in the same directory. But they don’t work?
Here is an example link in my MD source file:
This is a key factor to lead a meaningful [Life in Capitalism](./capitalism-and-your-life.md).
once on WordPress, this is the link that is generated:
https://dev.danielstrauss.net/the-essential/capitalism-and-your-life.md
“the-essential.md” being the blog post that the link is on.
I’m using Permalinks with only the blog name. What am I doing wrong?
Thank you for your help!
]]>Hi,
Thanks for creating this awesome plugin.
It works for your test repo but not working for my own public repo. I also tried to collect debug logs suggested on other post but didn’t work. Appreciate if you can help here.
Add below log line in git-it-write/includes/repository.php at line number 30 ?
print_r( $request );
2) Save the file
3) “pull only changes” for the repository manually.
4) Copy all the logs and share it pastebin or here as a reply.
Non working Repo
===================
05/14/2022 06:52 - ********** Publishing posts by repository config ID **********
05/14/2022 06:52 - Working with repository config ID 3
05/14/2022 06:52 - Creating repository object
05/14/2022 06:52 - Building repo structure ...
05/14/2022 06:52 - Repository not found on Github! [https://api.github.com/repos/dineshfoss1/testdin/git/trees/master?recursive=1]
05/14/2022 06:52 - ********** END **********
Working Repo:
===========
05/14/2022 06:53 - ********** Publishing posts by repository config ID **********
05/14/2022 06:53 - Working with repository config ID 2
05/14/2022 06:53 - Creating repository object
05/14/2022 06:53 - Building repo structure ...
05/14/2022 06:53 - {"_images":{"items":{"pic-5":{"type":"file","raw_url":"https:\/\/raw.githubusercontent.com\/vaakash\/test\/master\/_images\/pic-5.jpg","github_url":"https:\/\/github.com\/vaakash\/test\/blob\/master\/_images\/pic-5.jpg","sha":"8892b13f7a48cd3558baf04db4fa3adc34baa584","file_type":"jpg"},"pic1":{"type":"file","raw_url":"https:\/\/raw.githubusercontent.com\/vaakash\/test\/master\/_images\/pic1.jpg","github_url":"https:\/\/github.com\/vaakash\/test\/blob\/master\/_images\/pic1.jpg","sha":"d181e8b66131bbb37dbbba8f84db20242310eb9f","file_type":"jpg"},"pic2":{"type":"file","raw_url":"https:\/\/raw.githubusercontent.com\/vaakash\/test\/master\/_images\/pic2.jpg","github_url":"https:\/\/github.com\/vaakash\/test\/blob\/master\/_images\/pic2.jpg","sha":"1101f1f7a9634058cca5e7c0470ed711d37ab95f","file_type":"jpg"},"pic3":{"type":"file","raw_url":"https:\/\/raw.githubusercontent.com\/vaakash\/test\/master\/_images\/pic3.jpg","github_url":"https:\/\/github.com\/vaakash\/test\/blob\/master\/_images\/pic3.jpg","sha":"46beb5475933d7601d1ceb5f58056bb6c7165eaf","file_type":"jpg"},"pic4":{"type":"file","raw_url":"https:\/\/raw.githubusercontent.com\/vaakash\/test\/master\/_images\/pic4.jpg","github_url":"https:\/\/github.com\/vaakash\/test\/blob\/master\/_images\/pic4.jpg","sha":"b27f24f3a0c9d2023a7136e635305c050d1df7a8","file_type":"jpg"}},"type":"directory"},"dir1":{"items":{"guide":{"type":"file","raw_url":"https:\/\/raw.githubusercontent.com\/vaakash\/test\/master\/dir1\/guide.md","github_url":"https:\/\/github.com\/vaakash\/test\/blob\/master\/dir1\/guide.md","sha":"1243e44218ebfced15d308ab7eca7398267a0dca","file_type":"md"},"hello-world-\uc548\ub155\ud558\uc138\uc694":{"type":"file","raw_url":"https:\/\/raw.githubusercontent.com\/vaakash\/test\/master\/dir1\/hello-world-\uc548\ub155\ud558\uc138\uc694.md","github_url":"https:\/\/github.com\/vaakash\/test\/blob\/master\/dir1\/hello-world-\uc548\ub155\ud558\uc138\uc694.md","sha":"60948ac337816e69c0998a028f2e5a4c7daf8187","file_type":"md"},"index":{"type":"file","raw_url":"https:\/\/raw.githubusercontent.com\/vaakash\/test\/master\/dir1\/index.md","github_url":"https:\/\/github.com\/vaakash\/test\/blob\/master\/dir1\/index.md","sha":"62ce8cbcf6940c9feb5cc6ae666b46f8fe4e5a37","file_type":"md"},"pro1":{"items":{"faq":{"type":"file","raw_url":"https:\/\/raw.githubusercontent.com\/vaakash\/test\/master\/dir1\/pro1\/faq.md","github_url":"https:\/\/github.com\/vaakash\/test\/blob\/master\/dir1\/pro1\/faq.md","sha":"9ea336493c351ee1242cd3fe017e7514ebf25d29","file_type":"md"},"installation":{"type":"file","raw_url":"https:\/\/raw.githubusercontent.com\/vaakash\/test\/master\/dir1\/pro1\/installation.md","github_url":"https:\/\/github.com\/vaakash\/test\/blob\/master\/dir1\/pro1\/installation.md","sha":"832618068e695ec6675d7e8dbe1f40d3dd573d13","file_type":"md"}},"type":"directory"},"pro2":{"items":{"\u0baa\u0b9f\u0bae\u0bcd":{"type":"file","raw_url":"https:\/\/raw.githubusercontent.com\/vaakash\/test\/master\/dir1\/pro2\/\u0baa\u0b9f\u0bae\u0bcd.md","github_url":"https:\/\/github.com\/vaakash\/test\/blob\/master\/dir1\/pro2\/\u0baa\u0b9f\u0bae\u0bcd.md","sha":"94205cc1696104ac49767efbb02aecd0dd9c5b0f","file_type":"md"}},"type":"directory"},"pro3":{"items":{"index":{"type":"file","raw_url":"https:\/\/raw.githubusercontent.com\/vaakash\/test\/master\/dir1\/pro3\/index.md","github_url":"https:\/\/github.com\/vaakash\/test\/blob\/master\/dir1\/pro3\/index.md","sha":"aa34fb0b109a99cebdba0ded1b39bc8f5c4c1d01","file_type":"md"},"pro3-post":{"type":"file","raw_url":"https:\/\/raw.githubusercontent.com\/vaakash\/test\/master\/dir1\/pro3\/pro3-post.md","github_url":"https:\/\/github.com\/vaakash\/test\/blob\/master\/dir1\/pro3\/pro3-post.md","sha":"ded95f10c5a11aec1d970683f75c4b8558886aec","file_type":"md"}},"type":"directory"},"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd":{"type":"file","raw_url":"https:\/\/raw.githubusercontent.com\/vaakash\/test\/master\/dir1\/\u0ba4\u0bae\u0bbf\u0bb4\u0bcd.md","github_url":"https:\/\/github.com\/vaakash\/test\/blob\/master\/dir1\/\u0ba4\u0bae\u0bbf\u0bb4\u0bcd.md","sha":"eab75f6f2bb93b148a1eb811e2a3a48ace015771","file_type":"md"}},"type":"directory"},"dir2":{"items":{"my-article":{"type":"file","raw_url":"https:\/\/raw.githubusercontent.com\/vaakash\/test\/master\/dir2\/my-article.md","github_url":"https:\/\/github.com\/vaakash\/test\/blob\/master\/dir2\/my-article.md","sha":"6b48e4222632e4965b832be0dc1db85180039290","file_type":"md"},"with-images-2":{"type":"file","raw_url":"https:\/\/raw.githubusercontent.com\/vaakash\/test\/master\/dir2\/with-images-2.md","github_url":"https:\/\/github.com\/vaakash\/test\/blob\/master\/dir2\/with-images-2.md","sha":"ab9e5ec1ba152b207bf0783731037390b3148cc7","file_type":"md"},"with-images":{"type":"file","raw_url":"https:\/\/raw.githubusercontent.com\/vaakash\/test\/master\/dir2\/with-images.md","github_url":"https:\/\/github.com\/vaakash\/test\/blob\/master\/dir2\/with-images.md","sha":"f3fa33e37e7e307997df330b251fac4c55baad9a","file_type":"md"},"withfm":{"type":"file","raw_url":"https:\/\/raw.githubusercontent.com\/vaakash\/test\/master\/dir2\/withfm.md","github_url":"https:\/\/github.com\/vaakash\/test\/blob\/master\/dir2\/withfm.md","sha":"0a9354721bec3854cc03ac4a838976427ccc029c","file_type":"md"}},"type":"directory"},"file2":{"type":"file","raw_url":"https:\/\/raw.githubusercontent.com\/vaakash\/test\/master\/file2.txt","github_url":"https:\/\/github.com\/vaakash\/test\/blob\/master\/file2.txt","sha":"96e3d53a4f675252499c5ffd41d89719ac4eb697","file_type":"txt"},"readme":{"type":"file","raw_url":"https:\/\/raw.githubusercontent.com\/vaakash\/test\/master\/readme.md","github_url":"https:\/\/github.com\/vaakash\/test\/blob\/master\/readme.md","sha":"e87fd42eee1e450ec08fc68df834786cb7e03192","file_type":"md"},"rootfile":{"type":"file","raw_url":"https:\/\/raw.githubusercontent.com\/vaakash\/test\/master\/rootfile.md","github_url":"https:\/\/github.com\/vaakash\/test\/blob\/master\/rootfile.md","sha":"eeb6edfa5933663419e5806a5505c36e87c87791","file_type":"md"},"untitled":{"type":"file","raw_url":"https:\/\/raw.githubusercontent.com\/vaakash\/test\/master\/untitled.txt","github_url":"https:\/\/github.com\/vaakash\/test\/blob\/master\/untitled.txt","sha":"1caa30402020b9acde00b9babdeb63254d950d03","file_type":"txt"}}
05/14/2022 06:53 - ++++++++++ Uploading images first ++++++++++
05/14/2022 06:53 - Starting image pic-5
05/14/2022 06:53 - pic-5 is already uploaded
05/14/2022 06:53 - Starting image pic1
05/14/2022 06:53 - pic1 is already uploaded
]]>
I couldn’t find any documentation on how to use “Resuable blocks” option for “Post type to publish to”. My idea is to embed the GitHub content within any WP post/page and it will have many other blocks.
Regards,
Dinesh
Hi,
This addon for WordPress is amazing. I love using it. I would love to be able to set the feature image for posts within my repo on Github. Is this possible? I presume this would be in the post properties fields. What would the name of the field be and how do you set it?
Many thanks
]]>Hey, this is awesome plugin.
However for some reason automatic pull doesn’t work. It works if I pull the posts manually but if it tries to do it automatically the github reports that there is Error 500.
{“code”:”internal_server_error”,”message”:”<p>There has been a critical error on this website.<\/p><p>Learn more about troubleshooting WordPress.<\/a><\/p>”,”data”:{“status”:500},”additional_errors”:[]}
Any way to fix it?
]]>Hello,
I have successfully started using this tool, which is excellent. I exported all my current posts to GitHub as .md files and then pulled from GitHub hoping it would auto match the posts. However, it just created duplicates of all the original posts. Is there an easy way to either merge these or start over so my current posts can be converted to this method without starting stats over?
Thanks!
Robert
Hey Vaakash,
Thanks for your plugin!
Unfortunately, I am encountering the same issue as skariko.
I tried the plugin locally with your example repo and it works perfectly fine.
However, when I try to pull the posts from my production server, the log prints Repository not found on Github! [https://api.github.com/repos/vaakash/aakash-web/git/trees/master?recursive=1]
(when I click on the api endpoint url, everything looks good tho).
Do you have any ideas?
Thanks!
]]>Hello,
I am trying this plugin but after settings it always says:
04/08/2021 14:11 – Repository not found on Github !
But i am pretty sure that the GitHub username and repository name is correct.
Is there anything else i have to check?
]]>Based on my testing, this plugin duplicates pages instead of updating them when the permalink is the same. Can’t really use it for my page-based scenario, unfortunately.
]]>