Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Advanced Options – Add default post link in description › Reply To: Advanced Options – Add default post link in description
Hi!
The permalink is unfortunately not a custom field, so it cannot be accessed via that field. Although I think this is a neat idea, so I have noted to add this to the upcoming release.
In the meantime, I suggest this custom code based solution:
1. Instead of the {link} variable syntax, replace it with __link__ in the advanced content/title fields, like so:
[html]<a href=’__link__’>Link</a>[/html]
2. Then, add this custom code to the functions.php in your theme/child theme directory (copy from line 3 only!). Before editing, please make sure to have a full site back-up just in case!
This code will recognize this variable and replace it with the permalink.