How to extract year from a xml attribute
-
I have an attribute in xml import file named {initial_registration[1]} with date format like this: 2016-03-01T00:00:00
I would like to save only the Year of this attribute in my post content and possible with a shortcode.
I’ve read this article https://www.wpallimport.com/documentation/advanced/execute-php/ but I don’t know how to adapt it to my needs.
Could you help me?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to extract year from a xml attribute’ is closed to new replies.