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 » New Versions & Updates »

PATCH 113-06: the_author and other 'Limited PHP code' don't all work

Old Mar 13, 2013, 03:49 PM
juggledad's Avatar
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Note: this patch includes the changes in PATCH 113-03.

Several of 'Limited PHP code' - like the_author() and the_author_meta() - do not work in all places in the 'single.php, page.php and even the postformat.php. Thanks to 'goater' for finding the issue.

The following patch corrects this issue.

edit the file 'montezuma/includes/parse_php.php' and change line 28-30 from
HTML Code:
	$need_loop = array( 'the_content' );
	// the_content needs loop
	if( in_array( $function_name, $need_loop ) ) {
HTML Code:
	$need_loop = array( 'the_author',
	// functions that needs the loop
	if( !in_the_loop() && in_array( $function_name, $need_loop ) ) {
or download the attached file (which has the fix applied) and using FTP, replace the existing 'parse_php.php' file in the 'includes' sub-folder in the theme
Attached Files
File Type: zip parse_php.zip (2.4 KB, 2006 views)
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Patch 113-05: 'Add Sub Templates' '.php' missing/copy doesn't work juggledad New Versions & Updates 0 Feb 8, 2013 04:45 AM
RFE 013-04: support the function wp-get-archives() in the limited PHP code juggledad New Versions & Updates 0 Oct 25, 2012 06:51 PM
PATCH 373-07: make the 'Page' footer work for the archive page juggledad New Versions, & Updating 0 Mar 8, 2012 07:23 PM
[SOLVED] PATCH 373-03: date-modified in post/page .. patch is corrupted dnasir New Versions, & Updating 3 Jan 19, 2012 08:21 AM
PATCH 367-02: Page Titles are double with 3.6.7 (now part of PATCH 367-04) juggledad Old Version fixes and change logs 0 May 13, 2011 03:57 PM

All times are GMT -6. The time now is 05:25 PM.

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