Articles in this series

This post written by Austin

A web designer and avid WordPress guru. Visit my personal blog, and please follow @WPCult on twitter for site updates. You can also follow me personally @TheFrosty.

  • Share/Bookmark

4 responses to “Remove spaces when echoing the_title”

  1. Peter

    If you’re just trying to make the string into a valid URL candidate, urlencode() might be a better choice- that way you don’t have to worry about other characters in your title (colons, commas, punctuation, etc).

    Peter“s last blog post..How to Hide Certain Custom Fields From the Edit Post Page

  2. Peter Kahoun

    There is as “urlencode()” php function for this purpose. http://php.net/manual/en/function.urlencode.php

  3. Matt

    Brilliant stuff, thanks!

Shopping Cart

Your theme cart is empty

External Link Preferences

Feedburner & Twitter Stats

Tag Cloud

  • WordPress Premium Themes

    • Agent Theme
    • Black Canvas
    • Busy Bee
    • CelebrityPress
    • Chrome Theme
    • PaperCut
    • Revolution 2
    • WP Realtor