I am trying to edit the post date on a WordPress post to show a future date is this possible? For example:
Show that post was published on 6/06/10 but I actually posted it today.
Using Wordpress 2.8.1, I was able to edit the publish date to a future date. Upon saving, the verbiage changed from "Published on" to "Schedule for" which implies that you can schedule posts to publish on a specified date.
You can schedule the post from from your admin panel, right hand side you have a option named as "PUBLISH" underneath this you have all option of publishing post.
See the attached file here...
Yes, you simply put in the date that you want it to be, while the post status is on draft, press ok, and then the publish button should turn into a schedule button.
If it doesn't, save the post and go to where all the posts are listed, set the date there, and set it to published. It should then turn into a scheduled post.
It this still doesn't work, you might want to copy and paste the contents into a new post and start over from there.
I found my answer. It was a plugin called back to the future.
Related
How to change the date of publication of the WordPress post to the date of transfer from "Draft" to "Published", and not the date of creating "Draft"? The fact that the MailPoet plug-in for automatic mailing does not take into account the post, which from the drafts became published. So the newsletter does not see new posts and accordingly does not post weekly.
I don't think this is a functionality built into Wordpress. I think you'd have to manually use the date dialog to change the date, or build a wordpress plugin to do it when you switch from draft to published.
With WordPress 5.x here are the step to change the date of any published article:
Edit the article
Click on Options button at around top right
Click on Article horizontal tab
Under Visibility State, next to Published field, click on the date. Enter any date to your liking.
Click on Update button at around top right
Note: I translated the button name from French to English. So the real names are likely to be different.
Every time I publish a blog post, the archive counter sees that as a new item to archive.
I think this might be a bigger problem though. If I have an existing blog post and want to make changes, pressing "save" does not save the changes. I have to go and actually publish the post again. Is there a way around this? Is there something I'm not doing in the content type definition?
Thanks in advance.
I'm looking to create a button for a Wordpress site to display in the top corner of the page that says "Click here if this site hasn't been updated since your last visit." Clicking this would trigger the next scheduled post to automatically be published instantly. If there are no scheduled posts, the button will take the visitor to a random post from the archive.
I want to avoid one person being able to click this button over and over. I'm a complete newbie to programming so I'm just hoping someone can point me in the right direction. I don't even know what to learn in order to be able to make this, so any hints would be hugely helpful. Thanks!
Look into the Wordpress documentation. http://codex.wordpress.org/Function_Reference contains all the Wordpress php functions. You are going to want to get a basic understanding of php. I'm not sure on the scheduled post part, but to get a random post you need
query_posts('orderby=rand
I've been running a WordPress site for over a year now and never had a problem with it until yesterday. I'm using a custom field to store the url to a preview image for every post. I simply add it using the standard Custom Fields form in the Edit Post screen. Before when I'd save the post as a draft or if I immediately published it the custom field would be saved. But now all of a sudden no matter how I save the post (save as draft, publish or auto-save) the custom field isn't being stored in the database. I did confirm this by checking the wp_postmeta table.
I already reinstalled Wordpress, but it doesn't change a thing. I also went through other similar posts about this subject, but none of the solutions work.
Any ideas?
So after digging deeper, I figured out the custom field was dependent on another field. Still not sure why it wouldn't store the custom field in the database even though the other field wasn't filled out first. But it works anyway when I do it that way. WordPress works in mysterious ways sometimes.
I have my permalinks in WordPress set to the Month and Name setting. This generates URLs like /blog/2009/09/my-post-name. Every time a post is updated, it changes the posting date, which can potentially change the permalink address.
This is wreaking some havoc on my site, as I'll have banner/button ads throughout that point to the permalink. When a post from August is updated in September, all of the ads become broken links until I discover this and change it.
Is there any way to make the original posting date stay static, despite any updates? I'm looking for something like a plug-in or an overlooked setting, as I have multiple authors with varying degrees of computer literacy.
Thanks for any help!
Cory
Update:
Apparantly this is behaviour that others aren't experiencing, so I'm attaching a screen shot of exactly what's happening. Top image is before saving, bottom image is after saving.
(source: opl.on.ca)
Are you sure updating a post changes the permalink? I don't have this behaviour in my installations. What do changes a permalink is changing the post date.
In database, acoording to this schema, we have post__date and post__modified, two different attributes: used in create an update action. If you're having your post-date modified without modifying it directly
Updating a post date in Wordpress http://img18.imageshack.us/img18/3440/wordpresspostdate.png
then I'm afraid some plugin may be changing it's value.
Reading your description, I'm assuming you're using static links to your banners. Try to use a simple plugin that creates these links based on your post id: some simple routine would do it. You can get some information using get_post for example.
<?php
$my_id = 7;
$post_id_7 = get_post($my_id, ARRAY_A);
$slug = $post_id_7['post_name'];
?>
... or even easier with get_permalink. You need just your post id.
<?php
echo get_permalink(7);
?>
So, at least if your permalinks are changing without a reason and you dont know how to fix them, at least you can build them dinamically.
Just read the codex documentation and Function Reference to see what's avaiable to make your life easier!
I run the same permalink settings and don't have trouble with post updates changing the permalink. There are separate editor settings for the permalink and a user has to specifically change the permalink from that editor, which is right under the post title in the text editing box in the post editor. That's a WP thing to keep permalinks from getting broken all the time.
Maybe you should try using a few static pages? That way you can have both a clean permalink: mysite.com/mypermalink/ that won't change, if in fact your post permalinks are changing from a plugin that you need to use.