5,892 reputation
723
bio website
location
age
visits member for 2 years, 1 month
seen yesterday

I sell sea shells by the sea shore.


Jun
28
reviewed Approve suggested edit on syntax error unexpected '}' at 364 line
Jun
28
comment syntax error unexpected '}' at 364 line
The extra closing } is at line 364 of functions.php, so try removing it, or commenting it out e.g. //} - if you're not confident in removing things from your code AND then run your process again to see if any other errors are thrown. Usually, if that extra } was critical to a function, conditional statement or control structure you would get an error thrown higher up in your chain of execution indicating such.
Jun
28
comment Email admin when post pending?
...actually you are doing it wrong, what you have done is nested a function within a function BUT then you fail to call your nested function send_pending_email so while the conditional statement if ( $new_status === "pending" ) is evaluating to TRUE, nothing happens because send_pending_email doesn't get called. Remove the inner function send_pending_email as it's not needed.
Jun
27
comment set_post_thumbnail when user is not logged in
Well glad it's solved. Please mark your own question as correct for general housekeeping.
Jun
27
comment set_post_thumbnail when user is not logged in
It's unclear as to what you are trying to do. Show us your code? Are you trying to show the featured image on the front end to your readers?
Jun
27
answered Email admin when post pending?
Jun
25
answered Cron jobs in a class
Jun
24
answered Add new post with predefined / preset date
Jun
19
answered div having different appearances in different themes
Jun
19
answered Custom admin columns for ALL custom post types
Jun
19
answered front end posting
Jun
18
comment Integrating Easy Digital Downloads & Gravity Forms
Process in what sense? You want to submit orders through Gravity Forms? Or...? We need some specific information. Gravity Forms has an extensive API for which you can utilize to hook into and filter all kinds of user submitted data be it to a third party external resource or too any internal post type/custom post type within WordPress.
Jun
18
revised Removing buttons from the editor
added 6 characters in body
Jun
18
answered Removing buttons from the editor
Jun
18
revised What happens when wp_cron is deactivated in Wordpress?
edited title
Jun
16
comment Get post only from 'standard' post format
No problem. !get_post_format() is essentially doing the same thing, ! aka NOT, but technically the above would be better written as get_post_format() === false, which will only return true when get_post_format() returns false, which it does when checking for the standard post type. Now, false == will also return true for an empty string '', null and 0, so if they are not the expected, anticipated or potential values of output then it's best to go with === IMO. But glad your problem is solved.
Jun
16
revised Get post only from 'standard' post format
edited title
Jun
16
answered Get post only from 'standard' post format
Jun
15
comment User Profile Avatars
The column key is the array key you set to specify the array item that will show itself in the users list. $new_order[key] = value - the value is what you physically see as the columns title. The array key is for the purpose of assigning a value (Photo) but also to order the item in the array, in this case we are inserting this item at the start of the array (left most) by searching for the username key and inserting out custom key before it. In the second function shown in my answer, we then use the key we specified to intercept the array pointer at this column and inject our custom data.
Jun
14
comment Template redirect template loaded, but the header 404
Mod answer mate :)