2016-07-17, 19:27:10
Hello,
I have a problem with the templateFiles in the newsmanager.
I wrote the following codes in the settings and save this.
templateFile temp-news.php
single templateFile temp-post.php
I save this two files under my /theme/ directory.
So when I open the news page it doesn't show me the custom template code, that I have been coded before. It's only blank!
But when I open a post of the news page it shows me the template code correctly!
What's wrong? Can anybody help me?
In my templateFiles "temp-news.php" and "temp-post.php" are the same codes:
<?php nm_post_date(); ?>
<a href="<?php nm_post_url(); ?>"><img src="<?php nm_post_image_url(); ?>" alt=""></a>
It seems, that the variables nm_post_date() doesn't work in the temp-news file.
What are the right variables? Can anybody post / upload a custom template file for the news page?
Thank you for your fast help.
Best regards,
Manuel
I have a problem with the templateFiles in the newsmanager.
I wrote the following codes in the settings and save this.
templateFile temp-news.php
single templateFile temp-post.php
I save this two files under my /theme/ directory.
So when I open the news page it doesn't show me the custom template code, that I have been coded before. It's only blank!
But when I open a post of the news page it shows me the template code correctly!
What's wrong? Can anybody help me?
In my templateFiles "temp-news.php" and "temp-post.php" are the same codes:
<?php nm_post_date(); ?>
<a href="<?php nm_post_url(); ?>"><img src="<?php nm_post_image_url(); ?>" alt=""></a>
It seems, that the variables nm_post_date() doesn't work in the temp-news file.
What are the right variables? Can anybody post / upload a custom template file for the news page?
Thank you for your fast help.
Best regards,
Manuel