Magic Tag, field manipulation with function, doesnt work when using Ajax
-
I have a small problem in conjunction with pods magic tags + function + ajax loading by a third party plugin.
I calculate the age of a person using a date field.
The function, loaded by Snippet plugin:function return_age($input_date) { $now = date("Y-m-d"); return date_diff(date_create($input_date), date_create($now))->format('%y'); }
The shortcode/magic tag:
[pods]{@birthday_mod,return_age}[/pods]
Its a listing which shows the age, city, country and other pods field.
The other pods fields load normal. Only the field manipulated by the function shows this message if filtered/loaded by a third party plugin: “Please provide a Pod name”. The 3rd party plugin also provides page reloading, in that case the problem does not occur.Any idea why this happens or even better, any idea for a solution?
Thx in advance
- The topic ‘Magic Tag, field manipulation with function, doesnt work when using Ajax’ is closed to new replies.