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

Old May 28, 2013, 10:05 AM
5 posts · May 2013
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?

Old May 28, 2013, 11:43 AM
juggledad's Avatar
23,696 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
are you editing the virtual or physical footer.php?
Old May 28, 2013, 12:36 PM
5 posts · May 2013
I'm editing via the UI at Montezuma Options. That's the virtual, right?
Old May 28, 2013, 07:24 PM
juggledad's Avatar
23,696 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Yes, but you are limited in the php you can use -see the tab in the upper right 'Limited PHP Code'
Old May 29, 2013, 09:23 AM
5 posts · May 2013
Juggledad, thanks for coming through yet again. I got all the answers I needed under the "Limited PHP Code" tab and I like the direction in which I'm being guided — putting my changes in a physical file in a child theme. Thanks!


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 09:47 AM.

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