Can’t open scheduled posts

I assume what you are doing is pulling 3 posts, one or more of which may be ‘Future’ posts, displaying some kind of preview and a link to the complete post. When you click the link for ‘Future’ posts, you get the error. ‘Future’ posts are going to be blocked for people not capable of … Read more

Specific Days, Specific image on Front Page

Unless i missunderstood you, This should be easy to do without using a plugin… Embed this in your functions.php: function echoDayImage() { // GET CURRENT DAY $currentDay = get_the_time(‘l’); // CHECK DAY AND ECHO SUITABLE IMAGE if($currentDay = ‘Sunday’) {echo TEMPLATEPATH.’/images/Sunday.jpg’;} elseif($currentDay = ‘Monday’) {echo TEMPLATEPATH.’/images/Monday.jpg’;} elseif($currentDay = ‘Tuesday’) {echo TEMPLATEPATH.’/images/Tuesday.jpg’;} elseif($currentDay = ‘Wednesday’) {echo … Read more

Remove “Edit Link” next to “Publish immediatley” when adding a new post

Here is one idea to hide the Edit link via CSS: function wpse85434_hide_editlinks() { if(!current_user_can(‘manage_options’)){ // only for non-admins echo “<style>.misc-pub-section .edit-timestamp{display:none !important;} </style>”; } } add_action(‘admin_head-post.php’,’wpse85434_hide_editlinks’); add_action(‘admin_head-post-new.php’,’wpse85434_hide_editlinks’); I use !current_user_can(‘manage_options’) so it will be visible for the admin. Before: After:

Setting Post Date Returning “Notice: A non well formed numeric value encountered”

Ok. Here is an easy fix for that problem. You need to first convert the integer or string to date. See the codes below to understand how to do that: First change this line: $postdate = date($awyear.’-‘.$awmonth.’-‘.$awday.’ ‘.$awhour.’:’.$awminute.’:’.$awsecond); TO $postdate = $awyear.’-‘.$awmonth.’-‘.$awday.’ ‘.$awhour.’:’.$awminute.’:’.$awsecond; Now, convert the $postdate to time string by using strtotime function. $cvtpostdate … Read more

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