Automating Excerpt

The excerpt filter by default cuts your post by a word count, which I think is probably preferable to a character-based substr function like you’re doing, and it strings out tags and images as well while doing it. You can set the number of words to excerpt with the filter excerpt_length (it defaults to 55 … Read more

Automating Page Creation

Where is the content coming from? You can easily write PHP code that will create pages, but the content has to come from somewhere. If the content already exists, say in a database that you own, then you can code a process to take the data from a table/record and convert it into a post/page.

Upload file to SFTP using PowerShell

There isn’t currently a built-in PowerShell method for doing the SFTP part. You’ll have to use something like psftp.exe or a PowerShell module like Posh-SSH. Here is an example using Posh-SSH: Some additional notes: You’ll have to download the Posh-SSH module which you can install to your user module directory (e.g. C:\Users\jon_dechiro\Documents\WindowsPowerShell\Modules) and just load … Read more