Posts Tagged ‘php’

Remove first line of CSV file

Command Line Options If you are comfortable with the command line, or even if you aren’t and just need to quickly remove the first line of any file, here are a few one liners! Original Post* Recently I needed to run  a script to remove the first line of a CSV file and was getting […]


Trim whitespace on WordPress Excerpt

Recently built a client website and was pulling in a custom excerpt to the homepage for a custom post type. Everything worked fine until the client decided they were going to add a header image above every post and add some returns before the actual text started. This change on their end started giving my […]