Tech: Debugging WordPress Media imports

Importing files and posts into WordPress is sometimes a bit of a black art – there are lots of places where things might go wrong. Changing the upload_url_path value for your site might cause problems with WP export files – here’s how to fix it.

Cross-posted from edinburghwp.com

Tech: Working with excerpts in WordPress, or why isn’t this filter working?

Working with excerpts in WordPress, or why isn’t this filter working?

If you call get_the_excerpt() WordPress returns a string that looks like an excerpt – but it might not be . If your post doesn’t have a handcrafted excerpt, WordPress returns an automatically generated word-counted trimmed-down version of the full post content – and this may not be what you want. Here’s how I tweaked the code to get post excerpts as I wanted them.

Cross-posted from edinburghwp.com