I´ve tried everything I know (include file, file_get_contents, "IncludeMe"-Plugin and others) to execute a shortcode within a textfile, but it didn´t work.
So here is the problem detailed and I hope somebody could help me: I´m taking different rows of post_content from a textfile this way:
$text = $_SERVER["DOCUMENT_ROOT"].'wptext/more_text.txt';
$texto = file($text);
global $wp_query;
$postid = $wp_query->post->ID;
$pm_row = get_post_meta($postid, 'pm_row', true);
global $wp_query;
echo $texto[$pm_row];
It works so far, but in some of those rows are different shortcodes embedded. They don´t work and were always shown as plain text instead, although they are all functionel - outside of this textfile.
What am I missing?
Any hints for this?