Need help with STR REPLACE function...easy one

3 replies
  • WEB DESIGN
  • |
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?
#functioneasy #replace #str
  • Profile picture of the author markjacey
    mayby example?
    {{ DiscussionBoard.errors[2259414].message }}
  • Profile picture of the author Jamian
    Originally Posted by becoolufull View Post

    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?
    Use this, str_replace ( mixed $search , mixed $replace , mixed $subject [, int &$count ] )
    Signature
    Affiliate Marketing explained for beginners >>
    www.SuperAffiliateMarketingTrick.com <<
    {{ DiscussionBoard.errors[2262430].message }}
  • Profile picture of the author alexievici
    If you need to remove all colons from the title, this should help you:

    <?php str_replace(',','',wp_title('', true, 'right')); ?>
    {{ DiscussionBoard.errors[2265608].message }}

Trending Topics