0

I'm stuck with a question. How far can I go with php with wordpress? If good it's of course not the same as using a server+db and a .php file to script everything you can imagine, but how far can I go with Wordpress?

For example you have your standard while's etc. but then you have inserting, what if I want to insert something like this in a field in wordpress? Would this even be possible or something related to things like substr?

    $firstletter = $row['Name'];
    $firstletter2 = substr($firstletter, 0,1);

    $return .= '<li data letter="'.$firstletter2.'" >';
     }
   return friendly ($firstletter2);
1
  • The entire back end of WordPress is written in php. it's not just a templating language.
    – Joel M
    Commented Jan 2, 2020 at 3:30

1 Answer 1

0

You can use everything that is available in PHP, as WordPress is a script depending on PHP.

The only limitations you have are set by your version of PHP, and if you run huge scripts, your server configuration.

2
  • Is it maybe possible for you to give me an example or link me anything exampling how to insert data into a custom field/field using wordpress? The simplest thing I can come up with(usual php) is INSERT into ... WHERE ..., I just have no idea how to do this in a Wordpress way. I have a little bit of experience with Wordpress but not to much.
    – David H
    Commented Mar 3, 2014 at 10:51
  • You can use the $wpdb-Class for that.
    – fischi
    Commented Mar 3, 2014 at 11:25

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.