Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme » New Versions & Updates »

PATCH 113-07: allow use of bfa_get_template_part() in Virtual templates

Old Mar 20, 2013, 10:40 AM
juggledad's Avatar
23,762 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Inclusion of Custom sub templates should be done with
HTML Code:
<?php bfa_get_template_part( 'name-of-sub-template' ); ?>
however that code was not allowed in the virtual templates. This PATCH will allow they inclusion of Custom sub templates.

1) download the attached file
2) unzip it
3) move '650_sub_templates.php' to the 'montezuma/admin/options' folder
4) move 'get_template_part.php' to the 'montezuma/includes' folder
5) move 'get_whitelist.php' to the 'montezuma/includes' folder

the new format of the command will be

HTML Code:
<?php bfa_get_template_part( 'name-of-sub-template', '' ); ?>
Attached Files
File Type: zip PATCH113-07.zip (16.3 KB, 1406 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
PATCH 113-03: Using 'the_content()' in a virtual template may incorrect results juggledad New Versions & Updates 0 Jan 6, 2013 02:07 PM
[SOLVED] Need help differentiating virtual and physical templates Michael4fm Montezuma Theme 5 Jan 3, 2013 03:30 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 04:41 PM.

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