2013-12-04, 17:03:19
(2013-12-04, 02:12:32)notafish Wrote: So right now as a test-setup I have it output like this:
Code:<section>
<h2><?php getPageField($pag,'title'); ?></h2>
<?php getPageContent($pag); ?>
<?php if (return_custom_field('extra_text')) { ?>
<p><?php get_custom_field('extra_text'); ?></p>
<?php } ?>
<img src="<?php get_custom_field('achtergrond'); ?>" alt="image" />
</section>
Why are you using getPageContent instead of get_page_content. I hope, you don't try to include the content of another page and assume get_custom_field to magically get the field of this page instead of the current page!?