![]() |
Wordpress Question
on Wordpress say you have about 200 posts and you decide to use a trade script... is there anyway to edit the posts to use the script or do i need to fix the links one by one to include the "out" file/script
any input appreciated thanks |
You can do a search/replace in the db. Make sure you make a backup first though...
|
Quote:
|
one of my wp backup files is a 20 Mb text file :)
|
i'm not that good with mysql.. when you say search/replace what is it exactly i should look for
|
You can also build a wordpress plugin, that way it will take affect on any post.
|
i'd guess searching for "href=" would pretty much cover all the links right? so i can replace that for "href=xout?" for example.
|
mrkris how can i make a plugin that adds a code in the URL in each post
|
Start with a basic MySQL cheat sheet: http://www.pantz.org/database/mysql/mysqlcommands.shtml and it will start making sense.
Play around with a copy of your db until you understand what you're actually changing. |
Take a look at codex.wordpress.org and look into the add_action() calls. You can do exactly what you want.
|
Quote:
|
thanks for the replies
|
|
All times are GMT -7. The time now is 02:42 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123