Need help with STR REPLACE function...easy one

by 3 replies
4
I am having a wordpress blog....What I want is need to remove colon) from a link


Now when the my post page executes the <?php wp_title('', true, 'right'); ?> will fetch the title of the page.

This also fetches colon) in the title which I need to remove in this link

mysite.com/<?php wp_title('', true, 'right'); ?>

How can I do this?
#website design #functioneasy #replace #str
  • Banned
    [DELETED]
  • mayby example?
  • Use this, str_replace ( mixed $search , mixed $replace , mixed $subject [, int &$count ] )
  • If you need to remove all colons from the title, this should help you:

    <?php str_replace(',','',wp_title('', true, 'right')); ?>

Next Topics on Trending Feed