415 reputation
724
bio website dmaggio.carbonmade.com
location Indonesia
age
visits member for 4 years, 11 months
seen Aug 23 at 11:45

Web Designer & Developer


Aug
4
awarded  Announcer
Jul
31
awarded  Popular Question
Jul
13
awarded  Yearling
Jul
13
awarded  Necromancer
Jun
15
awarded  Notable Question
Jun
14
awarded  Autobiographer
Jan
15
comment displaying recent comments outside loop without plugin
I assume you were also looking for a solution without using a widget as well...
Jan
15
comment Comment Link from get_comments()?
You should probably use get_comment_link()... See my answer to a similar question here.
Jan
15
answered Get Comments: Direct link to specific comment + post title
Jan
13
comment How to remove category from wordpress url?
The above doesn't work for sub-categories, though... eg. www.site.com/main-category/sub-category/. Returned a 404 error page
Jan
13
comment How to remove category from wordpress url?
Here's a more up-to-date alternative: Remove Category URL
Jan
11
answered How to remove category from wordpress url?
Jan
5
answered why doesn't the_content() work in this {single-custom_post_type.php} page?
Oct
10
awarded  Popular Question
Sep
30
awarded  Explainer
Aug
11
comment Automatically set page order on create page
Mind if update your answer with the fixes?
Aug
9
comment Automatically set page order on create page
Oh, and by the way, I think you should use the commented query instead, which uses ORDER BY menu_order, since I am looking for the highest value (with the addition of the post_status, of course). That query should be the correct one.
Aug
9
accepted Automatically set page order on create page
Aug
9
comment Automatically set page order on create page
Okay, your code with the above fixes seems to work. However, the process runs on every update of the page, thus moving any updated page to the last order. So I added a condition within the function to set the page order ONLY if it is not already set: if ( $post->menu_order === 0 ) {}
Aug
9
comment Automatically set page order on create page
I think I found the solution to the blank page issue: infinite loop. In your case, anyway, the publish_page action should be removed and then re-added. With this fix, along with @bonger's **query**, the overall code is working in the right direction... Still testing, though.