KENpress
Forum Replies Created
-
Thanks vkaryl.
Please note: I am looking at this link live in Safari, and it looks perfect. None of the aforementioned squares. Cursed I say!
Wow,
Bad luck of some kind on my part. It seems to get cut off at the exact same place in the wordpress pastebin. Here is the link to that: https://wordpress.pastebin.com/792972
This is the full intended text of the post here: https://public-information.org/FutureForum.txt
I thought it might be easier for you to spot a problem if you can see the whole thing.
Sorry to be so much trouble.vkaryl,
I think that my post may be too long for this forum, keeps getting cut off? The second post is also incomplete. What are the limits? Sorry, I am new to the forums.
Comment out this line from the above code.
//`$where .= " AND post_date_gmt <= '$now'";
Sorry, I think that my previous post got cut off. Not sure if it is a mistake on my end, or if it just has not made it through moderation yet? I will wait a bit and post the rest if nothing else changes.
Forum: Fixing WordPress
In reply to: A CHALLENGE – Future Timestamp PostsHello. I am hoping someone may still be watching this discussion.
This future posts code is amazing. I am using it in the form Kafkaesqui gave in his second post.
$cat_id = 16;
$postlimit = -1;
$now = current_time('mysql');
$future_posts = $wpdb->get_results("SELECT * FROM $wpdb->posts, $wpdb->post2cat WHERE category_id = '$cat_id' AND post_id = ID AND post_date > '$now' LIMIT $postlimit");It has helped me so much, but I am having a problem. If I am not logged into my wordpress admin, the permalinks to my future dated posts stop working. If I am logged in, everything works perfectly, but after I have logged out, if I click on a future dated posts permalink, I get the search form and a "Sorry, but you are looking for something that isn't here." Suddenly the archive page will no longer display the post unless its date has passed.
Log back in and it works fine.
Is this to be expected? I am hoping for anyone who is viewing my site to see these future dated posts without being logged in. Is this a problem, or am I missing something?
Thanks for any help. I really appreciate all of the knowledge available in here.