I have some text in a .txt file saved on the server which I want to insert into the Intro Text of an existing article, so that a visitor can see the content of that .txt file in the JA News Pro front page.
I am able to use the Sourcerer pIugin to use PHP (by adding the code below) in the articles, but the plugin only works with the article’s main content, but not the Intro Texts. .
When I tried to insert the Sourcerer php codes into the Intro Text, the whole frontpage of the site crashed (only displayed a blank page).
Is there any other ways to load a txt file through as a part of the Intro Text of an article on the JA News Pro front page? I don’t want to use <iframe> because it’s not SEO friendly.
Thanks.
—– the Sourcerer plugin code that works in the main body of an article but not the Intro Text—-
{source}
<!– You can place html anywhere within the source tags –>
<?php
require($DOCUMENT_ROOT . “/test2.txt”) // You can place PHP like this
?>
{/source}