This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Advanced Options – Add default post link in description

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

#18730
Ernest MarcinkoErnest Marcinko
Keymaster

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.