Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

Can't output shortcode when customizinf footer.php

Prev Previous Post   Next Post Next
Old May 28, 2013, 10:05 AM
5 posts · May 2013
Can't output shortcode when customizinf footer.php

I installed the Sponsors Carousel plugin and am having trouble getting the carousel to appear on my site. Using the UI, I added the following to Montezuma's footer.php:
HTML Code:
<!-- debug --><pre>
<?php echo sponsors_carousel(); ?>
</pre><!-- debug -->

<div id="footer-bg">
My changes do appear — a dotted area indicates the <pre> block and, if I add "Hello world" inside the <pre> area, it appears on the page. My problem:
PHP Code:
<?php echo sponsors_carousel(); ?>
outputs nothing.

I tried replacing the PHP with the plugin's shortcode equivalent:
PHP Code:
<?php echo do_shortcode ('[sponsors_carousel]'); ?>
And nothing showed up. I tried another plugin to ensure the problem didn't lie with Sponsors Carousel:
PHP Code:
<?php echo do_shortcode ('[table id=3 /]'); ?>
This leads me to think the issue is related to the theme. What's going on?



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP code appearing in CSS output mjpg New Versions, & Updating 4 Jun 13, 2011 05:09 PM
DiggDigg Output Adirana Center area post/pages 1 Aug 9, 2010 03:45 PM
How to include Perl output Gary Italy Center area post/pages 2 May 26, 2010 07:56 PM
Right sidebar publish output on center roekoe Sidebars & Widgets 3 Mar 27, 2009 09:48 PM

All times are GMT -6. The time now is 05:40 AM.

Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.