GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Wordpress help - Mass changing links in posts? (https://gfy.com/showthread.php?t=970495)

Shoplifter 05-27-2010 12:18 PM

Wordpress help - Mass changing links in posts?
 
Any easy way to change sponsor links throughout a few hundred Wordpress posts?

Thanks thanks thanks

fris 05-27-2010 01:02 PM

theirs a search and replace wordpress plugin

Marquis85 05-27-2010 01:03 PM

I'm looking for one as well but for the time being, the plugin called SEO Smart Links might be what you're looking for.

Emil 05-27-2010 01:10 PM

update `wp_posts` set `post_content` = replace(`post_content`, ‘replace_that’, ‘with_this’);

GrouchyAdmin 05-27-2010 01:26 PM

Quote:

Originally Posted by Emil (Post 17180487)
update `wp_posts` set `post_content` = replace(`post_content`, ?replace_that?, ?with_this?);

This will do.

FlexxAeon 05-27-2010 01:32 PM

Quote:

Originally Posted by Emil (Post 17180487)
update `wp_posts` set `post_content` = replace(`post_content`, ?replace_that?, ?with_this?);

there ya go

been having to do this a lot lately unfortunately :disgust

Fat Panda 05-27-2010 01:33 PM

i would use search and replace

d-null 05-27-2010 01:39 PM

the op might be talking about mass changing varying links throughout a blog, in which case the problem becomes much more difficult

say you have 1000 different links to different landing pages within a sponsor that turned bad, you need a sophisticated regexp or something to find those link strings and pull them out and replace them with something else

zargan 05-27-2010 01:47 PM

Quote:

Originally Posted by Shoplifter (Post 17180274)
Any easy way to change sponsor links throughout a few hundred Wordpress posts?

Thanks thanks thanks

maybe re.place wordpress plugin will help you ...

Shoplifter 05-27-2010 02:08 PM

Quote:

Originally Posted by d-null (Post 17180632)
the op might be talking about mass changing varying links throughout a blog, in which case the problem becomes much more difficult

say you have 1000 different links to different landing pages within a sponsor that turned bad, you need a sophisticated regexp or something to find those link strings and pull them out and replace them with something else


Right. This is about changing sponsor links in many hand written posts.

I think there might be quite a demand for this these days lol..l.

fris 05-27-2010 02:31 PM

stop hand coding each link, its best, so you can just change them via the link ad manager. without dealing with the hassle

Houdini 05-27-2010 03:08 PM

Had the same problem on a 1200+ posts blog and used this plugin. Worked like a charm.

http://thedeadone.net/download/searc...dpress-plugin/

LoveSandra 05-28-2010 01:37 AM

Bump for you

Hentaikid 05-28-2010 05:15 AM

What emil said, only you do it in phpmyadmin working on the database not in wordpress itself


All times are GMT -7. The time now is 09:01 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc