• Resolved aldeasim

    (@aldeasim)


    Hi there.
    I’ve been using WordPress in a chilean blogs community website some months ago and I think it’s just awesome.

    Recently I have tried a method to show the IP of the author of every comment. I know there is a template tag called comment_author_IP(); and that’s not a problem at all. My question is: How can I substring this tag to get only the first three groups of numbers and hide the last to protect the IP from abuses? I’m tring to get something like 255.255.255.x

    I’ve tried using substr(); PHP method, but it only returns the full IP, and no processes it at all. How can I manage that?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get template tags as PHP’ is closed to new replies.