add Dynamic Content Gallery to static page

I want to add Dynamic Content Gallery to a static page but can't get it to work.  Any idea on how to do that?  I added the following line of code to the html on the page but it does not display.
<?php dynamic_content_gallery(); ?>

Open in new window

COwebmasterAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Jason C. LevineConnect With a Mentor No oneCommented:
Hi COwebmaster,

You can't just stick that in a page via the Page Editor.  You have to edit your theme files and add it to the page template itself.  If that's not an option for you, you can attempt to use the Exec PHP plugin to make it work via the editor:

http://wordpress.org/extend/plugins/exec-php/
0
 
thecrewCommented:
Wordpress will not allow you to use PHP in the HTML part of the editor unless you have a plugin to allow you to do so. That's why there are "shortcodes". I'll find the name of a plugin I've used in the past. Just a moment.
0
 
thecrewConnect With a Mentor Commented:
I just re-read your question and I may have misunderstood your problem. Did you put that line of code in the actual HTML of the template file or in the HTML part of the page editor?

The name of the plugin that I've used to execute PHP in a page or post is "PHP Exec", it works just fine. I have also noticed that Wordpress does some odd things with the input from the HTML edit window, if you are finding problems there another good plugin that should solve that is called "Raw HTML capability", it forces WP to parse your HTML exactly how you put it in instead of adding the elements it thinks are missing.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
COwebmasterAuthor Commented:
I added in the line of code into the HTML tab on my static page.  It's not rendering though.  Are you saying that I need Exec-PHP plugin?
0
 
COwebmasterAuthor Commented:
ok, that worked, thx!
0
 
Jason C. LevineNo oneCommented:
>> Are you saying that I need Exec-PHP plugin

Yes.  The HTML tab in the editor won't accept <?php ?> content at all without PHP Exec.

Just make sure you have VERY strong passwords on your accounts.  If a ton of people are creating content for you, you really want to rethink this solution
0
 
COwebmasterAuthor Commented:
ok, thx!
0
All Courses

From novice to tech pro — start learning today.