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 » Atahualpa 3 Wordpress theme » Center area post/pages » Post-Kicker, -Byline & -Footer »

Using Php in Footer in Version 3.6.7


  #1  
Old May 18, 2011, 01:21 AM
Nobody15
 
9 posts · Mar 2011
Using Php in Footer in Version 3.6.7

Hi

I want to try, as described here, to activate "content above LOOP", "Loop", "Content below LOOP", "Content if NOT FOUND" in the index.php again. But the problem remained the same.
Maybe somebody else knows if I in other files also must make changes?

Regards
NB
  #2  
Old May 18, 2011, 01:56 AM
GarethP
 
64 posts · Jun 2010
I only use PHP in the footer - and got around it by adding a widget area to the footer and then using one of the many widgets that allow execution of PHP code.

If you could add a widget area where 'Content ABOVE Loop', 'The LOOP' etc. used to be would that work?
  #3  
Old May 18, 2011, 03:16 AM
Nobody15
 
9 posts · Mar 2011
Hi GarethP

Thanks for the reply.
Your answer works described in part.
But I can not use variables like %author-nickname%.

Regards
NB
  #4  
Old May 18, 2011, 03:25 AM
GarethP
 
64 posts · Jun 2010
I guess that is because items like %author-nickname% are 'theme variables' and the PHP in this sort out widget is 'outside' the theme.

I'm sure there's some PHP way of obtaining this information from the WordPress database directly (some WordPress PHP functions maybe?), maybe a trip to the WordPress Codex?
  #5  
Old May 18, 2011, 04:54 AM
Nobody15
 
9 posts · Mar 2011
I have done it.
The tip with WordPress Codex and adding a new widget area was just right

Thanks
  #6  
Old May 18, 2011, 05:29 AM
Nobody15
 
9 posts · Mar 2011
Now the next problem.
I made ​​it, that it appears with a new widget area and the "Shortcode Exec PHP" plugin with Atahualpa 3.6.4.
But in Atahualpa 3.6.7 I do not see anything.
There is only a blank Line.

Edit:
After I changed the index.php I now see the text.
But the text formatting (Class post-footer) that I use when add the new new widget area is not used.

PHP Code:
<?php bfa_widget_area('name=Footer Area&before_widget=<div id="%1$s" class="post-footer %2$s">&after_widget=</div>'); ?>

Last edited by Nobody15; May 18, 2011 at 05:51 AM.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Ata version 3.5.3 (bfa_ata4) compatability issue with php version php 5.2.12 bettykin Atahualpa 3 Wordpress theme 4 Dec 6, 2010 10:53 AM
php in footer.php - links to just show up on homepage chris Atahualpa 3 Wordpress theme 6 May 9, 2010 12:50 PM
[SOLVED] messed up header.php and footer.php monochrome Header configuration & styling 0 Jun 20, 2009 02:16 PM


All times are GMT -6. The time now is 11:27 AM.


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