Output a python script to a WordPress blog?

[ad_1]

Hello all! I have got my WordPress site on my pretty beefy Web server. I intend for my server to showcase one of my projects. So basically. The script output AI generated text. I want a trigger when someone enters the site. It will trigger the python script to run. And output it onto the blog post. Something like a console. But the user does not have any input. Is something like this possible with PHP and WordPress? Thank you for your attention.

[ad_2]
1 Comment
  1. The solution I’m thinking of is kinda convoluted but may just work.

    Create a new shortcode. That shortcode should use a shell command to run the python script and output what the script returns.

    Add the shortcode to your post.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer