I tried the views_php but I have no luck. Any link to its documentation?

I want to add some custom field with PHP code inside it but the one I did return nothing. Please see the attached picture.enter image description here

  • Have you enabled the php filter. Dec 26, 2012 at 6:16
  • Can't find that PHP filter. Dec 26, 2012 at 6:29
  • Oh sorry I got that. Already enabled. Dec 26, 2012 at 6:30
  • No need of enabling php filter module.
    – Sibiraj PR
    Dec 26, 2012 at 6:33
  • Oh I thought I need that Dec 26, 2012 at 6:35

1 Answer 1


Yes you can add php code using views_php

Add field in views global Add field in views Then add code you need is in Output code sector. I thing here is the problem for you. you add php code to 'Value code'. Add php code in output field Then look at the preview. it's done!!!!!! Look at the preview

  • The problem is that code in the Output field works, but not code in the Value field.
    – Renee
    Feb 20, 2014 at 0:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.