• Hello everyone!
    Please, help me with a problem.
    I need to write a plugin that displays or saves to the file titles of the posts for some period. It should be running line that TV will read. Kind of rss but without tags at all. Just a plain text in the body of the page that I can get by URL as http://www.mysite.com/wp-content/plugins/runline/runline.php

    I did it as a separate file which I can call by a url but not in the folder of plugins and it displays to me titles of the posts okay. But idk how to do that correctly with a plugin. There are mistakes as
    Fatal error: Call to a member function main() on a non-object in functions.php on the step of activation of plugin, because it can’t find the wp-blog-header.php

    I use there WP_Query to get posts that I need.

    I’m new in writing plugins so I’m not sure what to do.

    The reason why I should do it through the plugin is that I’m not allowed to write to the root of the website.

    Is that possible?

The topic ‘Plugin that display post titles as a plain text’ is closed to new replies.