Tag Archives: wp-application-windows

WordPress Application for Windows

I generated a WordPress application for Windows, using ChatGPT. Before using it, I decided to go through the code to see if it was okay. I think, one must consider the possibility of malicious code, before using the code generated by a tool which may be referencing some public code site. I checked the code for any security related hints, I also checked the logic.

I did not see any security related risks, I am new to this, so, I might be wrong. Otherwise, the application seems to contain all the logic that I wanted, as instructed in the prompt.

ChatGPT Generated Application for WordPress

ChatGPT has generated an application per prompt, the prompt is part of the previous post. ChatGPT has instructed me to run a batch file.

Prompt to Generate a WordPress publishing Application for Windows

I think, today, it was the time, to stop making small prompts to edit images and it was the time, to generate a full blow tool, using a prompt. I use ChatGPT. So, I wrote up a complete prompt to generate an application for Windows, to publish WordPress posts. The prompt covers UI, authentication, publishing. It needs to be seen whether ChatGPT will generate a functioning application.

Prompt

Design an application for Windows. It is to be used for publishing posts to WordPress blog. The application must have a UI and a window. The application will have a toolbar with buttons for selecting a blog, which would be one of the following: amol9.blog, code9.blog, game9.blog and amol9.io. The buttons should be on top, in the toolbar, the buttons should be on left. On right hand side of the toolbar, there must be a button for publishing the post, the button should change color upon publishing successfully.

The necessary permissions, or login, or tokens should be obtained by the application to post on the WordPress blog. If it is WordPress password, then it should be stored in a file in “user\documents\wpapp” folder. If it is a token, it should be stored in the same location. The application should obtain the necessary permissions when it runs. If permissions have been already obtained, it should not ask again.

The application UI must have two text boxes, one, on the top, for post title, which would be one line and, second, below it, for editing the post text. Inside the post edit section, facility to add code should be there. To the left of the publish button, there must be an image button, to add an image to the post, this image must come before the post text. The width of the image should be minimum of 1000 px in width, if the image has less width than that, then, it should be padded on both sides. The image should be center aligned in the post.

The categories and tags should be fetched from the WordPress blog site. Two buttons, below the image and publish buttons, should provide a facility to select/add new categories and tags. These should be 2 different pop up windows.

All the content created should be stored locally, and upon successful publishing, it should be deleted. A button to the left of image button, named view blog should open a default browser window with the current blog url, to view the post.