Tag Info

Hot answers tagged


As of @cybmeta word's, I answered my question here. Thank you for all of your effort. In future, if someone comes to read this article, just remember, default arguments also affecting your results. So my final working code it. global $post, $paged, $current_user; get_currentuserinfo(); if(empty($paged)) $paged = 1; $args = array( ...


It's just simple, same reply from Error in WP_update_post but in your case there is small change. Just use wp-load.php as include. No need to include post.php. Once the wp-load.php file is included, the entire wealth of WordPress functions is provided to you. For pull the recent post, you need to use wp_get_recent_posts() wordpress function which is from ...

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