Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Post-Kicker, -Byline & -Footer (http://forum.bytesforall.com/forumdisplay.php?f=17)
-   -   Using Php in Footer in Version 3.6.7 (http://forum.bytesforall.com/showthread.php?t=14204)

Nobody15 May 18, 2011 01:21 AM

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

GarethP May 18, 2011 01:56 AM

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?

Nobody15 May 18, 2011 03:16 AM

Hi GarethP

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

Regards
NB

GarethP May 18, 2011 03:25 AM

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?

Nobody15 May 18, 2011 04:54 AM

I have done it. :)
The tip with WordPress Codex and adding a new widget area was just right

Thanks

Nobody15 May 18, 2011 05:29 AM

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>'); ?>


juggledad May 18, 2011 10:01 AM

are you saying you don't get the footer widget of you don't see the class?

Nobody15 May 18, 2011 10:29 PM

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".


All times are GMT -6. The time now is 04:16 AM.

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