duceduc
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Plugins
In reply to: [Mailtrap for WordPress] Notice Error messageI am not sure if this is the correct way to fix the notice message. I have changed the following in ‘plugins/mailtrap-for-wp/mailtrap-for-wp.php’, line 71
from this:
$email_sent == null;
to this:
$email_sent = '';From your screenshot, yours look different than mine. Did you arrive from the admin dashboard by this way?
‘All import > Manage Imports > Import Settings > Record Matching’I don’t have an answer to your issue, but I do like how you added those orange check marks for the description in your site. Was it done through WP All Import content and title section?
Here is one you can use. This will output ‘April 2018’
You will need to add this to your wp all import function editor.
function formatDate($str) { $yr = preg_replace('#\/[^/]*$#', '', $str); $month = preg_replace('/^.*\/\s*/', '', $str); $mth = 'Invalid Month'; if($month >= 1 && $month <= 12){ $mth = date("F", strtotime("2001-" . $month . "-01")); } return $mth.' '.$yr; }Call it as such.
[formatDate({yourXmlDate[1]})]
Viewing 4 replies - 1 through 4 (of 4 total)