Tag: PHP

  • Releasing Content over Time / Drip Campaign with WordPress

    Releasing Content over Time / Drip Campaign with WordPress

    Using the Date Registered field in WordPress you can create a page that releases content over time. In this example we are creating a Drip Campaign for content released in a specific category. In this example I have set up a category called “Campaigns” and within it I have added subcategories called Week 1, Week […]

  • Install ext-intl on Mac OSX using homebrew and XAMPP

    This was a painful process for me, it took quite a while to figure out why such a simple implementation when using ubuntu, can be so much work in a Mac. We can’t just install the extension with apt-get like ubuntu, and its not already waiting to be uncommented like in windows, we have to […]

  • Create SEO Friendly urls with this Slugify PHP Method

    Create SEO Friendly urls with this Slugify PHP Method

    /** * slugify * @param string $str * @return mixed * * Converts nasty URLs to clean, SEO friendly ones */ public function slugify($str) { $clean = preg_replace(“/[^a-zA-Z0-9\/_|+ -]/”, ”, $str); $clean = strtolower(trim($clean, ‘-‘)); $clean = preg_replace(“/[\/_|+ -]+/”, ‘-‘, $clean); return $clean; }