In wordpress, lets say I want to have a php function that when called throws out html code. How would I accomplish this?
Lets say my code is the adsense javascript.
and if i want to make a php function get_adsense() that puts in that code in the wordpress loop, how do I define it?
function get_adsense() {
code that will return adsense script
}
Thanks. I'm sorry if I sound full retard, I have zero PHP experience and I'm currently learning through trial and error.
:bowdown:
Lets say my code is the adsense javascript.
and if i want to make a php function get_adsense() that puts in that code in the wordpress loop, how do I define it?
function get_adsense() {
code that will return adsense script
}
Thanks. I'm sorry if I sound full retard, I have zero PHP experience and I'm currently learning through trial and error.
:bowdown: