8

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

5
  • 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

10

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

1
  • 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, privacy policy and cookie policy

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