I wanted to show random lines from a list instead of a static tagline on top of the Homepage. I was searching for a while but only found outdated infos or plugins. Some PHP code I found worked, but ended up showing two lines of my text file at once. I tweaked the code a little (not that there’s much to work with) and ended up creating this little plugin. A “real” programmer probably would laugh at this. But I’m not at all a programmer and frankly quite pleased with myself.
This is the code for the PHP script.
Continue reading “Random Quotes from File (PHP Script)”