Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 23rd Jun 2010, 09:51 AM   #1
Warrior Member
 
Join Date: 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Need help with STR REPLACE function...easy one
Share on: 
fb share twitter share gplus share more share

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?
becoolufull is offline  
Unread 24th Jun 2010, 06:59 AM   #2
Active Warrior
 
markjacey's Avatar
 
Join Date: 2010
Location: Jupiter, FL
Posts: 40
Thanks: 2
Thanked 2 Times in 2 Posts
Default
Re: Need help with STR REPLACE function...easy one
Share on: 
fb share twitter share gplus share more share

mayby example?
markjacey is offline  
Unread 24th Jun 2010, 07:32 PM   #3
HyperActive Warrior
 
Join Date: 2010
Posts: 364
Thanks: 0
Thanked 18 Times in 17 Posts
Default
Re: Need help with STR REPLACE function...easy one
Share on: 
fb share twitter share gplus share more share

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 ] )

Affiliate Marketing explained for beginners >>
www.SuperAffiliateMarketingTrick.com <<
Jamian is offline  
Unread 25th Jun 2010, 01:20 PM   #4
Warrior Member
 
Join Date: 2010
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Need help with STR REPLACE function...easy one
Share on: 
fb share twitter share gplus share more share

If you need to remove all colons from the title, this should help you:

<?php str_replace(',','',wp_title('', true, 'right')); ?>
alexievici is offline  
Closed Thread


Bookmarks

Tags
functioneasy, replace, str


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 01:22 AM.