Cron While Editing Post

It seems to have solved by changing the two functions, by taking a different approach: /* CHECK IF CURRENT USER IS NOT IN POST.PHP AND IN POST-NEW.PHP AND DOWNGRADE PUBLISH POSTS IN PENDING AFTER X DAYS */ if(is_admin() ) {global $pagenow; if( ‘post.php’ != $pagenow || ‘post-new.php’ != $pagenow) { add_action( ‘init’, ‘downgrade_publish_posts’ ); function … Read more

Get Post ID with insert/edit link

Not an exact answer to your question (hooking into the insert/edit link functionality), but possibly an alternate method that can achieve the same goal (inputting a permalink, outputting a Post ID): https://codex.wordpress.org/Function_Reference/url_to_postid

save_post only saves meta data on second save

Did you try removing the IF statements and use save_post hook instead of save_post_listing to see if an IF statement is blocking the wp_set_post_terms? Also try wp_set_object_terms instead of wp_set_post_terms. Furthermore, if you can make sure it has to do with the if(get_post_meta($post_id, ‘wpcf-proprty_online’, true) == ‘y’) statement, then this post_meta has not been updated … Read more

Post Auto Draft Issue

You probably need to modify the columns displayed in your Custom Post posts list, so that the list isn’t dependent solely on Post Title. I have a similar situation, with a Custom Post Type that consists solely of a “featured image” (and a “link” custom metabox). I modified the Post list to output the image, … Read more

Frontend posting – everything saves other than checkboxes?

Did you check the database for the data? My guess is that the problem is here: echo ‘<input type=”checkbox” name=”cbn[]” id=”‘.$option[‘value’].'”‘,$checkboxes && in_array($option[‘value’], $checkboxes) ? ‘ checked=”checked”‘ : ”,’ /> ‘; should be: echo ‘<input type=”checkbox” name=”cbn[]” id=”‘.$option[‘value’].'”‘.$checkboxes && in_array($option[‘value’], $checkboxes) ? ‘ checked=”checked”‘ : ”.’ /> ‘; Edit: You’re confusing poor PHP. Try enclosing … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)