Tag Info

Hot answers tagged


WordPress has built-in support for posting via email. Go to Settings > Writing in your admin and enter your credentials under "Post via e-mail". Note it won't handle Gmail labels (it only works via POP3).


The native trash bin It sounds like you're implementing your own version of the WordPress trash system. If you trash a post, the native way, it will get the trash post status and will be automatically deleted (permanently) after 30 days. You can change that in your wp-config.php file with: define( 'EMPTY_TRASH_DAYS', 10 ); for e.g. 10 days. You can ...


WP Cron jobs are not reliable as it needs someone to visit the site at the time the event should fire. If you need precise timing, you should use server cron jobs. Anyways, lets look at your code and what is wrong and we can fix it wp is a better hook to use to hook your scheduled event, this is the earliest that postdata available. init is way to early. ...


It think that your problem is the you are passing the post ID as url parameter to facebook API: $url = get_the_ID(); Also, as get_posts return an array of post objects, you could use this code: $posts = get_posts(array('numberposts' => -1) ); foreach($posts as $post) { $url = get_permalink( $post->ID ); $fbcount = json_decode( ...

Only top voted, non community-wiki answers of a minimum length are eligible