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, 02:21 AM
Nobody15
 
9 posts · Mar 2011
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, 02: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, 04: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, 04: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, 05: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, 06: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 06:51 AM.
  #7  
Old May 18, 2011, 11:01 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
are you saying you don't get the footer widget of you don't see the class?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #8  
Old May 18, 2011, 11:29 PM
Nobody15
 
9 posts · Mar 2011
If I change the index.php in 3.6.7 i see the text that I generate by "Shortcode Exec PHP" in the new Widget area which I have built in in version 3.6.4.
But the text formatting does not work like in version 3.6.4.
I have used the "post-footer" class so that I can use the settings in the Atahualpa "Style Posts and Pages - FOOTER Box".

Last edited by Nobody15; May 18, 2011 at 11:38 PM.

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 11:53 AM
php in footer.php - links to just show up on homepage chris Atahualpa 3 Wordpress theme 6 May 9, 2010 01:50 PM
[SOLVED] messed up header.php and footer.php monochrome Header configuration & styling 0 Jun 20, 2009 03:16 PM


All times are GMT -6. The time now is 10:49 AM.


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