One feature I've either missed over the years or doesn't exist, is the ability to add more meta data to imported posts. Here is the scenario:New WordPress siteImporting old WordPress content into new siteWant to add a new category to all posts (or tag)User custom template page to display new posts (category-foo.php)So how do we solve this issue? Here is what I did. This may not be the best or optimum way, and as a disclaimer, unless you fully understand databases, sql syntax, and how WordPress ties posts and meta data, this...
Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts
Tuesday, February 25, 2014
Wednesday, March 9, 2011
Required And Optional Function Parameters
I love using different programming languages. Whether it's C#, PHP, Python or Ruby on Rails, they each have their strengths, which makes finishing projects faster. Choose the best tool for the problem.Today a project I'm working on required an additional parameter to a Javascript method that was already called in several files. In C# I could write an overload methodUse Overloading in C# versions below 4[csharp]public void MyFunctionA (int par1, int par2){ //some code}public void MyFunctionA (int par1, int par2, string...
Subscribe to:
Posts (Atom)