get_page() not working with plugins?
-
Hey,
I tend to believe that it’s me doing things wrong but do the plug-ins stop working when I use get_page() instead of the_post() to retrieve page content?
I have a Contact Form 7 form on my page inserted like this:
[contact-form 1 "Contact form 1"]
Now, in my page.php I have the following code to retrieve the page content:
<?php $page_content = get_page($page->ID); echo $page_content->post_content; ?>
The $page->ID is set alright as the page content itself is coming down fine. It’s just the form plug-in that does not get “translated” and displays like [contact-form 1 "Contact form 1"].
Any idea how to solve this?
Many thanks in advance!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘get_page() not working with plugins?’ is closed to new replies.