Hey @pixelpanther
Does the custom export field not support functions with more than one variable?
You can pass multiple arguments to functions in custom export fields.
I am getting “an unknown error occurred” when previewing the output
I am not able to reproduce this in my tests. Can you please try with the latest beta version of WP All Export?
If that doesn’t help, then please replicate the problem at http://www.wpallimport.com/debug/ and open a ticket at http://www.wpallimport.com/support/ so that we can check this for you. Be sure to include a link to this thread in your message.
Hi @wpallimport
I created a test site using your debug feature. The functions do not result in an “unknown error”, but they do not show any values in the preview output either.
This time I did a simple post export. I added a new field to the export, selected “Custom export field” and entered the following in the input area:
[exclaim({Title})]
I have the following in my php function editor:
<?php
function exclaim($title) {
return $title . "!";
}
?>
(This time I am using a simple single-variable function.)
Can you confirm that I am using the correct syntax for the custom export field to call a php function? e.g. square brackets to call function, curly braces to define DB variables
Thanks
Hi @pixelpanther
Can you confirm that I am using the correct syntax for the custom export field to call a php function?
Yes, everything is correct.
The functions do not result in an “unknown error”, but they do not show any values in the preview output either.
This is fixed in the latest beta version of WP All Export.
@wpallimport
Okay, thank you for confirming that this is a bug in the current non-beta version.