Timeline for how to modify request to get_template_part()?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 9, 2011 at 19:59 | vote | accept | Adeerlike | ||
Oct 9, 2011 at 19:47 | comment | added | Adeerlike | mm i wanted to PM you but i guess i cant. well sorry you had to go through that, i hope ill learn from that and not wait for it to happen to me as well.... =] cheers | |
Sep 29, 2011 at 23:21 | comment | added | Roman | Yes, just for the future. For example: I had a customer last month whose site was hacked (timthumb bug). Because the files where edited by a script, I had to re-download and re-install everything from scratch. The customer had made some changes to the theme before and I had to figure out which file was different from the original theme, checked the file for some nasty evil scriptcode and moved the diff to the new file. If I had a child-theme to work with, the required time would be halved. | |
Sep 29, 2011 at 23:06 | comment | added | Adeerlike | what kind of benefits would you mention? just future development compatibility and such? [not that im saying its not worth it, but im just wondering if there's more to it] THANKS! | |
Sep 23, 2011 at 14:44 | comment | added | Roman |
No, you don't have to create a child theme. But the benefits are worth the 5minutes of work here ;). Btw. get_template_part() is just a better include() . If you want to create a modified entry.php just copy the file, rename it (e.g. entry-myedits.php ) and set the include to get_template_part('entry', 'myedits'); in p2_load_entry() .
|
|
Sep 23, 2011 at 14:21 | comment | added | Adeerlike | thanks Roman! i had actually already been to that file; dont know why i didnt remember that.. are there any objections to making a totally new theme from this one, and just renaming it and documenting that its derived from it? i dont actually want the P2 updates.. | |
Sep 22, 2011 at 12:56 | history | answered | Roman | CC BY-SA 3.0 |