Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Can't output shortcode when customizinf footer.php


  #1  
Old May 28, 2013, 09:05 AM
UTAN_dev
 
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">
etc…
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?

Thanks!
  #2  
Old May 28, 2013, 10:43 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
are you editing the virtual or physical footer.php?
  #3  
Old May 28, 2013, 11:36 AM
UTAN_dev
 
5 posts · May 2013
I'm editing via the UI at Montezuma Options. That's the virtual, right?
  #4  
Old May 28, 2013, 06:24 PM
juggledad's Avatar
juggledad
 
23,765 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'
  #5  
Old May 29, 2013, 08:23 AM
UTAN_dev
 
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!

Bookmarks

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 04:09 PM
DiggDigg Output Adirana Center area post/pages 1 Aug 9, 2010 02:45 PM
How to include Perl output Gary Italy Center area post/pages 2 May 26, 2010 06:56 PM
Right sidebar publish output on center roekoe Sidebars & Widgets 3 Mar 27, 2009 08:48 PM


All times are GMT -6. The time now is 12:23 PM.


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