Page 1 of 1
what's the difference between the two?
Posted: Fri Jun 24, 2005 5:50 pm
by mkyb14
ok after looking at some code on a wordpress template i noticed that the author used
now i've been using
what's the difference?
Posted: Fri Jun 24, 2005 5:52 pm
by dethron
what is get_footer() ? it is not a built-in function while include is a standard function.
i dunno then
Posted: Fri Jun 24, 2005 6:37 pm
by mkyb14
it was in the page and i couldn't find any code that called it, so it must me something he wrote.. but include does just fine.
Posted: Fri Jun 24, 2005 6:40 pm
by dethron
Posted: Sat Jun 25, 2005 12:44 am
by facets
perhaps there is an include functions.php call somewhere which has the get_footer() function in it.
Posted: Sat Jun 25, 2005 1:37 am
by McGruff
Try doing a "find in files" to hunt the function down. Your editor should be able to do that.
Posted: Sat Jun 25, 2005 1:58 am
by nigma
dethron wrote:what is get_footer() ? it is not a built-in function while include is a standard function.
You are right, get_footer() is not a built-in function. However, it is defined as part of Wordpress.
From everything I've read on the wordpress wiki the only difference between using the built-in
include function and the wordpress include tags is that the wordpress include tags include specific files whereas with include you have to pass an argument with the file name. You may want to reference the
Wordpress Codex Wiki to make sure.
Hope this helps.
Posted: Sat Jun 25, 2005 4:15 pm
by Chris Corbyn
If on a *nix (or you happen to have "grep for windows") then from the root of the package...
Code: Select all
bash -$ grep 'function get_footer' ./*
*Should* show you where it is
