Blog Archives

How to Select Related Posts (by tags and category relevance) in WordPress

The first step is to get the post ID of the blog post you are viewing. You can get the id of a post by using $post->ID in WordPress. Let’s pretend it’s 3987. You will also need to know the

Tagged with: , , , ,
Posted in uncategorized misfits

How to Find and Replace text inside a data field in SQL (string manipulation)

update [table_name] set [field_name] = replace([field_name],’[string_to_find]‘,’[string_to_replace]‘); Why is this useful for WordPress? Well sometimes you want to update a code snippet or something pasted across multiple posts.

Tagged with: ,
Posted in uncategorized misfits