Can't put PHP code into "Rewrite results" field?
-
Hello “Author”.
First of all, i would like to THANK YOU! for this AWESOME plugin i can’t live without!!
Usually i use Drupal so you know how much this plugin must mean to me xDThe “problem” is, that i am trying to rewrite a field from a custom content type made with CCTM plugin.
The 2 plugins integrate perfectly together, but when i try to render a field that is showing related pages, it outputs the page id’s instead of names, and it does not link to the correct page, but the page that the field is “taken” from.
I therefore tried to rewrite the result of the field and added a php code (same one as in my single-member.php template).
This is the code
<?php print_custom_field('forretningsomrde:to_link'); ?>
In the persons own site Example here, this code
<?php print_custom_field('forretningsomrde:to_link'); ?>
works fine and renders all the correct related pages in a correct way.Is there a problem using php in “Rewrite results” ?
- The topic ‘Can't put PHP code into "Rewrite results" field?’ is closed to new replies.