Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Mar 13, 2013, 03:49 PM
juggledad's Avatar
juggledad
 
22,041 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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 ) ) {
to
HTML Code:
	$need_loop = array( 'the_author',
						'the_author_meta',
						'the_author_post_links',
						'the_content', 
						'the_date', 
						'the_excerpt' 
						 );
	// 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, 272 views)
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support

Bookmarks

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 12:50 AM.


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