Floréal
Forum Replies Created
-
Forum: Hacks
In reply to: Does a WordPress XML-RPC librabry exists in Qt/C ?Hi,
I don’t found any solution to do that as it does not exist any qt library to do that, as someone says me in another forum:
https://qt-project.org/forums/viewthread/50199/#207100In this forum, there is a link to wordpress API that can help doing this library ourself. But I don’t think I will do that soon.
For the moment, I use in my Qt program a little part written in Java to send the post on my WordPress blog.
I see there is a plugin we can add to wordpress, and then we can use JSON to send post. I recently leatn JSON (it is very easy for sure), I think I will try using JSON to not use any java part in my program.
If in a distant future I develop any Qt/C++ library to do that, for sure I will share that!
Floréal.
Thanks !
This solution works perfectly for me – for publishing through XML-RPC, and when a post is deleted !
Are the posts you publish are post_type = 'post', or are they custom posts?
I don’t know. But your first code works when I publish with the wordpress admin, so I suppose that post_type = ‘post’. I don’t know where I can see that.
But my problem is now resolved, as I have said in the beginning of my message. Thnaks a lot for your help !
Floréal.
Hi,
Thank you for your suggestion. I have added this to my function.php.
1) For post publishing throuh XML-RPC : it does’nt work (no cache updated)
2) For posts being deleted : again, it doesn’t work (no cache updated)Other idea ?
Thanks for the time you pass for help me.
Floreal.
Thanks for your reply.
Your fo=unction works but is not perfect for me :
– If I publish an article from the wordpress administration, it works perfectly.
– But I generally post my articles through an application and the article is send through the XML-RPC API of wordpress to my blog. Doing this, your function doesn’t work.
– I still have a problem if I delete an article : the cache isn’t updated.Do you have any suggestion to solve my problem ?
Thanks for your help, and sorry for my bad english,
Floréal.