WordPress: Change the date of publication - wordpress

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.

Related

Permalink Goes to Old Page

I have been working on a site created by another developer. I have been fixing the site to make it more visually appealing. I am also responsible for adding new events and pictures which i self taught myself to do.
I have a situation where I have a page with the following permalink:
http://www.cic-nj.org/events/
The problem is that this link goes to a page that does not show the edits that i am making under that page and there is no other page listed that shows the info it actually displays.
this is what I have in the editor box on wordpress that I want it to show.
enter image description here
this is what appears when url is used or when i click view
enter image description here
I have been sure to click update and renewing page to view it. it's like its going to a ghost page i can not edit.
Can anyone point me in the right direction on this?
Thanks in advance...
You are experiencing "slug collision": more than one thing in your WP install has the same slug.
The problem that you have is events is a custom post type, with a slug set to events - therefore the url http://www.cic-nj.org/events/ is directing to the listing of events. This is an automatic feature of WordPress. (Note - you can see more details to support this conclusion by the fact that you've got individual events accessible at url's such as http://www.cic-nj.org/events/blue-apron-info-session/ )
Note that custom post type slugs will always take priority over a page / post slug.
You have a couple of options:
If you want a page to display the content that you've created, the page's slug / permalink must be different than events
If it's acceptable, you can rename the slug of the "events" custom post type to something different. This has the potential consequence of losing SEO "juice".
If it's acceptable, you can remove the custom post type, if you aren't going to use them any longer.
NOTE: It may be tempting to ask "how do I remove the custom post type", or "how do I change the post type slug". Those are different questions, and if you need to ask, they should be asked in a different question - not added as a comment below.

Woocommerce: Customizing the availability of a category

I have many products nested within parent categories in WooCommerce.
I want to be able to apply a custom field where I can specify a time availability for categories as a admin feature only in Back end.
Theory:
Back end - On each parent category I will have this custom field where I can type or choose a time frame: for example 11:00-17:00.
Front end:
During this time frame, users will be able to browse all the products within that category.
Outside of this time frame all the products within that category will stay visible (but inactive) and they will be displayed greyed out or with a 'closed' banner (something like that).
Where can I start with this?
THE BEGINNING
You can start adding 2 plugins to add a custom time picker on product categories admin pages:
Advanced custom fields (ACF) plugin
Date & Time Picker for Advanced Custom Fields or also Date and Time Picker Field
This is just he beginning (and I can't confirm that is the best way). So In ACF you create a group and you name it:
Then you set the location (It's going to be a "taxonomy term" for "Product categories"):
Then In options you can chose it like a Metabox on the side (on backend):
After you add a new field and name it. You chose the field type and time only option:
[
Then now you are going to compile all the other options to fit your needs. Then you can save and add, if you need a 2nd field…
Now if you go to the WooCommerce Products Menu, under categories submenu, you will get this:
Now you can read a little the ACF documentation and also the wooThemes/woocommerce dev. documentation too.
You can customize WooCommerce overriding the templates and use hook filter and actions.
You will find in here on Stack OverFlow and over internet a lot of code, examples and tutorials, to begin and try to achieve your project. When needed you will post questions to get helped, with the code you are using telling what is working and what not…

How can I sort by a custom field date in the WordPress calendar widget?

I'm using "Advanced Custom Fields" along with "Custom Post Type UI" to create events on my Wordpress site. Everything works fine and the templates are in place however I can't get the posts to display properly in the Wordpress calendar widget.
At the moment the posts are filtered by publishing date. However, for my purposes, I need them shown by the date of the event itself – not the day I created the post. I've already got a custom field called "event_date" that's stored in yymmdd format. With that said, is there a way to overwrite the default behavior of the calendar widget to sort by this field?
If not is there a plugin that might help me accomplish this?
You could try this add-on for the Advanced Custom Fields WordPress plugin:
http://wordpress.org/plugins/acf-field-date-time-picker/

Wordpress: Calendar Widget displaying posts by custom field (date)

I created a website build around a custom post type events. These events have custom fields, one of them is the event-date (the date the event is happening, NOT post publish date). I'd like a calendar widget that simply highlights the days an event is happening (maybe with a link to it). This means i need to plug my custom fields into a calendar widget plugin.
I found this post from 2 years ago, http://wordpress.org/support/topic/display-posts-in-a-calendar-using-custom-field-as-date?replies=8 - it seems they wanted exactly what i'm asking for. Unfortunately i couldn't figure out how to do it with the plugin mentioned by them (FT calendar).
Most calendar widget plugins simply use the pust-publish date. I need them to take their date-data from a custom field.
Do you guys have an idea which calendar-widget-plugin/way would be best for me?
After I've made a search and test of some of the event calendar plugins, calendar that would be closest to your need is All-in-One Event Calendar. After installing it is necessary to upgrade to the Standard version. The plugin has far too many options than it is needed, but is highly configurable so it can be configured to work roughly what you need.
Here is also the link with the analysis of different Wordpress event calendar plugins.

Change post date on a WordPress post

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.

Resources