542 reputation
415
bio website ianchanning.wordpress.com
location Belgium
age 35
visits member for 3 years, 4 months
seen 8 hours ago

Monkey coder no. 76540


Jun
6
accepted Using a database view = evil incarnate?
Jun
5
asked Using a database view = evil incarnate?
Apr
21
awarded  Necromancer
Mar
14
awarded  Yearling
Feb
6
awarded  Popular Question
Dec
27
revised Add Role inherits?
corrected spelling, corrected some grammar as my spelling corrections weren't enough
Dec
27
suggested suggested edit on Add Role inherits?
Dec
27
accepted Variable use in get_template_part
Dec
13
awarded  Self-Learner
Jun
10
comment Saving fields in a drop-down in Wordpress
As @Stephen Harris says - you're not setting the $template value. Try putting this at the top of your function: $template = $post->page_template;
Jun
10
comment Saving fields in a drop-down in Wordpress
If as you say your default template gets updated in the database correctly - then when you refresh the page then you should have the text of the selected template in the $template variable. Have you tried printing out the $template variable to see what's in it?
Jun
10
answered Saving fields in a drop-down in Wordpress
May
31
answered How can I get all posts data from within a paginated search result?
May
31
comment How can I get all posts data from within a paginated search result?
Could you add the code that you're using that returns the filtered $posts?
May
31
answered Force page to open in html mode
May
31
comment How can I get all posts data from within a paginated search result?
The only thing I can think of is to have a second query without the pagination. If I come up with anything better I'll add an answer
May
31
comment How can I get all posts data from within a paginated search result?
Is this assuming that you keep the pagination set to 10 posts per page?
May
22
awarded  Student
Apr
26
answered PHP if Condition not working
Apr
26
answered Logout redirects to /forums/