MODIFY bfa_loop()
Hi,
I have a question. If I should change the bfa_loop( ) function to show the post at the start page, with this structure: Last Post for category one ______________________ Last Post for category two ______________________ Last Post for category three ______________________ Last Post for category four Basically , I want to show the last article for all single category in my blog. I saw that the bfa_loop function( ), show all article regardless of category. Can I change the bfa_loop( ) fuction without the change is lost in case update theme? |
Any change to the themes code will be lost over an update of the theme.
|
Quote:
But if if you employ the child theme WP functionality, changing montezuma code, you could have user to able a child theme to redefine a function in parent. For example for bfa_loop() you should change montezumas'code with this: Code:
if (!function_exists( 'bfa_loop' ) ){ To do this, however, we should change the montezuma's core. I hope you have understood me. |
I solve it whitout child theme
|
Care to explain your solution for others?
|
I have create a virtual main template named home.php in Montezuma Options -> Main Templates, with this code:
Code:
<!--<div id="container">--> After, I have create a Page named Home and I assigned the Virtual Main Template home.php created, by dropdown "Virtual Template" on the right bottom. Finally, I assigned in WP -> Read -> Front page displayes, A static page (select below) -> Front page: Home. |
Nicely done! And thanks for sharing.
|
All times are GMT -6. The time now is 09:09 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.