开发者

Stand alone "SEO Smart Links" plugin functionality

开发者 https://www.devze.com 2023-01-09 14:06 出处:网络
Anybody can provide code snippet how to implement s开发者_如何学Goomething like \"SEO Smart Links\" does ?

Anybody can provide code snippet how to implement s开发者_如何学Goomething like "SEO Smart Links" does ?

Here is what it does: SEO Smart Links can automatically link keywords and phrases in your posts and comments with corresponding posts, pages, categories and tags on your blog.

So e.g. I will provide array of keywords + links, pass it to the function and function must search for those words in post and then replace them and create links.


preg_replace (click on the link to RTM) can give you what you are looking for. This is a PHP function that takes a string, looks for any given string in that string, and replaces it with another string. It has full regular expression support.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号