Tag: Function

Trim Characters using PHP

I had previously written about how you can easily trim your text using a build in WordPress function called wp_trim_words() but sometimes you actually want to trim your text to…

Run a Shortcode Anywhere in WordPress

WordPress shortcodes are macro codes that allow you to perform certain actions within the post content. By default they only display on single post pages within the post content. The…

Ajax and WordPress

Using Ajax with WordPress

A little while back, I updated Magazine Basic and added the Ajax save function. When I uploaded it to WordPress to await approval, I received some feedback on how I…