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.
Related
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
on a default wordpress installation, what actually happens when you click publish?
I know there's a new entry added to the posts table, but what else happens - Is there anything else updated such as tables, automatically telling search engines about them, updating sitemaps etc?
Sorry if this is the wrong sort of question to ask!
save_post action is triggered whenever a post is created or updated, it means that any code inside core, themes, or plugins that is hooked with that action is launched.
Well, if you have google XML sitemap, a new entry makes changes in your sitemap xml file and during google bot's next visit, your xml file automatically tells google about the new post you added. Something like this.
While writing new blog posts I occasionally hit keywords, that I want to write an other post in the future about. The post didn't exist right now, but creating a link (or anything that will become a link later) while writing the post, would make it a lot easier to reference to the future post than adding links later manually when the new post really exists.
I already thought about using drafts for this scenario and just create an empty post, but I couldn't find a plugin for displaying conditional invisible links to draft and visible links to finally published posts.
Any ideas how to address this issue?
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.
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.