1,580 reputation
32865
bio website example.com
location Europe
age 27
visits member for 4 years, 4 months
seen Apr 15 at 19:54

Kind of Wordpress noob ;)


Apr
15
accepted Best way of passing PHP variable between partials?
Apr
14
revised Best way of passing PHP variable between partials?
edited title
Apr
14
comment Best way of passing PHP variable between partials?
How do I create this function / class without the need of calling it everywhere anyway? Could we focus on "how do that right" rather than "it doesn't work because you're wrong"? :) Thanks a lot! I'm just wondering what's the best, preferred way of getting the variable from header.php everywhere else. BTW even if I declare the variable in index.php I still can't access in fuctions below (why is so?).
Apr
14
comment Best way of passing PHP variable between partials?
I do think the variable is in the same scope, also I want to avoid using GLOBAL for obvious reasons.
Apr
14
asked Best way of passing PHP variable between partials?
Mar
29
awarded  Famous Question
Feb
27
awarded  Notable Question
Feb
17
awarded  Notable Question
Dec
21
asked How does WordPress load themes? It doesn't see mine (symlinked)
Dec
8
awarded  Yearling
Nov
29
awarded  Popular Question
Nov
25
accepted How to avoid wp-load.php within a PHP/CSS file?
Nov
23
comment How do I get attachment_id?
I've been working it out for quite a while and I'm wondering - how can I get the proper ID here?
Nov
12
awarded  Notable Question
Nov
10
awarded  Popular Question
Oct
31
comment How do I get attachment_id?
Thanks, question updated :) I don't need to have an attachment_id here though, I just need to get proper size for the image added to metabox (it is in Media Library so has proper thumbnails), but I think that's the only way (excepting regexp).
Oct
31
revised How do I get attachment_id?
added 149 characters in body
Oct
31
asked How do I get attachment_id?
Oct
26
awarded  Popular Question
Aug
28
awarded  Notable Question