1,608 reputation
1621
bio website
location Devon, United Kingdom
age 33
visits member for 3 years, 5 months
seen Apr 17 at 16:10

Apr
16
awarded  Excavator
Apr
16
revised How to rename default posts-type Posts
Fixed the action hooks
Apr
16
suggested approved edit on How to rename default posts-type Posts
Apr
16
comment How to rename default posts-type Posts
@kaiser - This answer is correct, the one that is marked as the answer by the OP is incorrect (look at the actions - 'admin_menu' and 'init' are the wrong way around. Also this answer users the __() function.
Mar
24
awarded  Popular Question
Mar
10
answered update_user_meta doesn't work with AJAX
Mar
10
comment How to use only scripts from new theme?
The handle underscore is a used for the Underscore script within the WP core, so when you have tried to register a script with the same handle I expect it's been ignored. In turn, you then enqueue underscore which, I suspect, has dependencies and thus they will be enqueued also.
Mar
10
reviewed Reviewed Rewrite URL in address bar for a specific page
Mar
10
comment Rewrite URL in address bar for a specific page
Is this any good for you? stackoverflow.com/a/1701992/567059
Mar
9
comment generate unique number when registering a user
@pakc1202 - I've updated the my_on_user_register() callback to format the random number as you require, and I've added a note about outputting to the Users profile.
Mar
9
revised generate unique number when registering a user
Add callback to output data to the users profile
Mar
9
comment generate unique number when registering a user
@pakc1202 - Do you want to be able edit the random number on the profile page, or just view it?
Mar
9
revised generate unique number when registering a user
Update the 'my_on_user_register()' callback function
Mar
6
comment Customize or avoid new admin email address notification
All done, please see below.
Mar
6
answered Customize or avoid new admin email address notification
Mar
6
comment Generate Random Post Links Somewhere in the post
Must have been a long week, I didn't pick up on you using code in the editor at all! As @TomJNowell says, that is really not a good idea and you should start looking at ways around that. I'd suggest you start by looking into Child Themes, or at worst editing directly the templates within your theme current theme - the code in my answer will work in the same way. Just don't forget to take backups ;-)
Mar
6
comment Generate Random Post Links Somewhere in the post
You're welcome. Please don't forget to mark this answer as accepted and maybe even upvote if you found it helpful.
Mar
6
comment Generate Random Post Links Somewhere in the post
See my edit, hopefullt that is what you were looking for.
Mar
6
revised Generate Random Post Links Somewhere in the post
Move code to function in response to OP's comment
Mar
6
comment Generate Random Post Links Somewhere in the post
This is replacing the code that you use to manually generate the random links, so it should go in the same place. Make sure that you wrap the code in PHP tags if necessary - <?php before the code and ?> after the code