Hi, I wanted to create a custom template from banners area on my blog:
http://klikerlab.pl/
(yes, it's based on WP Framework ;) )
you will see three banners to the right from the main article. To have them in separate .php file, I created this:
<?php
/**
* Template: reklama.php
*
*/
?>
<div class="reklama">
<div class="ngg-gallery-thumbnail"><img src="http://lh6.ggpht.com/_DCdlvFF6Ij4/Syz6DKOZ4EI/AAAAAAAABMI/sSE35XZmZL4/blog-roku.jpg" alt="Angry face"></img></div>
<div class="ngg-gallery-thumbnail"><img src="http://lh6.ggpht.com/_DCdlvFF6Ij4/SyP38L-Cq8I/AAAAAAAABKc/YKJTG1XjpUY/odkoni.jpg" alt="Carolyn Resnick"></img></div>
<div class="ngg-gallery-thumbnail"><img src="http://lh6.ggpht.com/_DCdlvFF6Ij4/SyP681hTqnI/AAAAAAAABKs/qsNIH5dz-fQ/equimechana.jpg" alt="Equimechana"></img>
</div></div>
and I replaced this part of code with:
<?php get_reklama(); ?>
because the name of this file is reklama.php
But it doesn't work, the errors that appears is:
Fatal error: Call to undefined function get_reklama() in /home/klikerlab/domains/klikerlab.pl/public_html/wp-content/themes/wp-framework/index.php on line 37
So what should I do to have it working in a separate template, like comments.php? I need this because in future I want to create there area for outside ads.
Thanks in advance,
and happy new year! :)
not resolved