set my own variables
-
I use the same theme in more than one blog. Since I did some customization and they don’t have the same categories ID, every time that I update one I have to go to every single file that uses categories Id and change the id’s number.
How do I set my own variables on fucntions.php so instead of changing the id’s in every file I just need to change it in the functions.php? Something like:
function cats_ids(){
$car_id = 23;
$airplane_id = 45;
…
}Thanks!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘set my own variables’ is closed to new replies.