How replace post date with event date

Ok, great. It is using the posts for concerts, parties…etc. You need to create a plugin: Simply, create a folder inside the /wp-content/plugins and name is /my-events-plugin Create a new PHP file, name it my_events_plugin.php, and use the following template: https://www.smashingmagazine.com/2011/09/how-to-create-a-wordpress-plugin/ There is this tutorial that will get you to adding the custom field and … Read more

Escaping date string in url with wordpress

strtotime will return false if you give it weird information. echo strtotime(“<script>’); // bool(false) However, if you do what you are doing and nest two statement you may not get what you expect. echo strtotime(‘+1 day’,strtotime(‘<script>’)); // int(86400) And date returns the beginning of the universe, the day of creation– January 1, 1970– if given … Read more

How to add a sortable date column in an admin page?

Just for people passing by, for putting together all this code was not trivial. The problem was actually the lack of data. I solved adding data as metakey (added in my case when the order changes status) and echoing it as the column value. So the full code is: // Adding a new column to … Read more

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