Since a while I have started comparing frameworks for wordpress in order to understand the way wordpress works.

Now that I understand the code more clearly, I have compared it to the twentythirteen and twentyfourteen themes bundled with wordpress.

I came to understand that quite alot of the code seems to be the same, apart from the functions they all seem to use and call for.

Can I do the same thing, using code from those themes?

I'm sorry if this question has already been asked before, just didnt see it anywhere on this site...

Any suggestions to this issue?

  • 1
    Wordpress is under GPLv2 license. So yes, you can use the code, resell it or whatever you want. Just remember to release your product under a license compatible with GPL. – cybmeta Jul 9 '14 at 7:26
  • 1
    Can you change this to an answer?:P – ImAtWar Jul 9 '14 at 7:26
  • 2
    @cybmeta not accurate, you can't change it to "compatible" if you reuse actual GPL code, it must be GPL as well. – Rarst Jul 9 '14 at 8:51
  • So what would this mean for me re-using code? Would i still be unable to re-sell? – ImAtWar Jul 9 '14 at 8:53

Themes bundled with WordPress are licensed under "GPLv2 or any later version" in full (both code and assets).

You can reuse and resell that code, as long as you abide by the GPL license, effectively meaning — resulting product's code (and assets if you use them) must be under either of:

  • GPLv2 or later
  • GPLv2 strict
  • GPLv3

with all the implications of.

| improve this answer | |

I just want to add to @Rarst answer.

I came to understand that quite a lot of the code seems to be the same

Yes, the bundled themes are written by the Wordpress team, so you would expect the coding styles between the bundled themes to be the same.

Can I do the same thing, using code from those themes?

This was handled by @Rarst, but I would like to add to this. The bundled themes are showcases of new functionalities within Wordpress. These themes are used to target these new functionalities and the correct uses there of

Furthermore, these themes suggest the correct way how a theme should be written according to coding standards, although this is not the alpha and omega to coding standards as such.

These bundled themes offer a perfect base for theme developers to create their own themes on, and I believe that is why they should be used for. I've personally combined the twentytwelve and twentyfourteen themes as a base for my previous theme I developed. But you have to keep @Rarst answer in consideration here.

This is just a little useless info, but I always like to add some form of credit to these themes, something in the lines of

This theme is based and written using the twentyfourteen theme as a base........

in my stylesheet under Description

| improve this answer | |
  • I meant to say that some frameworks seem to do the same thing. They seem to edit everything out thats not perfect and leave the rest in it. – ImAtWar Jul 9 '14 at 13:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.