Ready to get started?Download WordPress


Post Title issue (3 posts)

  1. zeroclickmarketing
    Posted 8 months ago #

    Ok here's the deal my urls post example.com/postnameisthis
    which is perfect. Now I need my post title on the post page to do the same thing basically.

    Right now my post title says: Testing This Out

    I need it to say: TestingThisOut or testingthisout

    Any ideas how I can make that happen.

    I have read all last night and part of today about the_title and just have no clue what code to change or what files to put things in or change.

    Any help would be greatly appreciated.

  2. zeroclickmarketing
    Posted 8 months ago #

    Guess you could say trying to remove the spaces between the words of the entry title.

  3. Tomi Toivio
    Posted 7 months ago #

    Something like this?

    function my_remove_title_spaces ($title) {
    	 $title = preg_replace("/ /","",$title);
      	 return $title;
    add_filter( 'the_title', 'my_remove_title_spaces');


You must log in to post.

About this Topic