1,777 reputation
818
bio website forevanyeung.com
location New Jersey
age
visits member for 3 years, 4 months
seen Apr 11 at 3:59

Jul
12
comment Redirect Restricted Page to 404
You are right. I was under the impression from the client that he did not want anyone without access to even know the page existed, throwing a 401 would say it exists but prohibited. Nonetheless, it would be an easy change to throw a 401 instead.
Jun
12
comment how to get wordpress user id when user register
Please open a new question so we can go more in-depth with your problem. But it seems this answer should be the solution you want.
Dec
2
comment Determine if ID is page or post and query the ID
Is it throwing any errors or is it just not displaying?
Nov
6
comment wp_enqueue_ scripts
1. Having spaces in the URL makes everything more confusing, I would suggest removing the spaces from the folder name. 2. excerpt.js returns a 404 error, make sure that file is properly named and exists in that directory.
Nov
1
comment All Posts Linking to Author Posts directly
On the left side of the answer, is a helpful or unhelpful rating (up and down arrows). Below that should be a checkmark visible only to the author of the question. Mark the checkmark for the question that solved your question.
Oct
27
comment get_posts by id not working
Where are you defining $current_post?
Oct
25
comment All Posts Linking to Author Posts directly
You're welcome. If you post has answered your question, please mark the question as answered to help the rest of the community and me.
Aug
19
comment Override file in parent theme
Exactly what file are you trying to replace?
Feb
17
comment Wp_Nav_Menu - Identify the last menu item
@Stephen - Please help us mark the answer as answered if it has helped you.
Feb
16
comment Post-Registration, post-meta hook?
It passes the $user_ID. So you will have access to everything about the user. I updated my answer with more information
Feb
15
comment How to limit posts to 1 from each term with tax_query?
Good call. Actually now that I think about it, you probably do not even need relation because it is only one.
Feb
14
comment Wp_Nav_Menu - Identify the last menu item
Very good pick up helenhousandi!
Feb
13
comment Remove slug in taxonomy url
I notice you are getting 404 errors with your permalink structure now. Have you flushed your rewrite structure? wpengineer.com/2044/custom-post-type-and-permalink
Feb
13
comment Remove slug in taxonomy url
Can I see the full code, just to make sure it is implemented correctly. As far as I know, if the function fails it should not throw a 500 error.
Feb
12
comment Exclude custom taxonomy tag from loop
Also, start_wp() has been deprecated for some time now. It has been effectively replaced by the_post.
Feb
12
comment Exclude custom taxonomy tag from loop
I added the usage in my post.
Feb
12
comment How to sort by most watched in X days/months
Try wordpress.org/extend/plugins/recent-post-views. You will have to look into the source for the query, though.
Feb
7
comment Unique widget id in sidebar
I don't think the id is passed to the after_title. You may be able to plug into it to change that, but have you tried calling the .widgetdiv through its parent? $(.widget#id .widgetdiv) I used jQuery as an example, you can easily adapt it to your script.
Jan
22
comment Filter custom comment type from Manage Comments & Dash Widgets
How is your plugin making these 'custom comment type'. I do not know of any native WordPress way for custom comments.
Jan
17
comment Setting a post's category
Your syntax looks correct. Echo $id just to make sure it is set properly.