Title: Using code from Free templates&#8230;License?
Last modified: August 20, 2016

---

# Using code from Free templates…License?

 *  Resolved [op1001](https://wordpress.org/support/users/op1001/)
 * (@op1001)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/using-code-from-free-templateslicense/)
 * Hello boys and girls.
 * Just a question…
 * Can wordpress users use code from free templates ?
 * Not CSS or whatever but code that is part of wordpress?
 * example
 *     ```
       <?php $entry_title = ( example_post_edit_link() == '' )? 'entry-title entry-title-single entry-title-page' : 'entry-title entry-title-single'; ?>
       ```
   
 * Code that I guess this is code that wordpress uses??
 * I’ve read the GPL threads etc etc, but I can’t figure out where the php code 
   portion and use of falls under?

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 1 month ago](https://wordpress.org/support/topic/using-code-from-free-templateslicense/#post-3584997)
 * You can edit, remove or generally modify any code that is released under GPL.
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [13 years, 1 month ago](https://wordpress.org/support/topic/using-code-from-free-templateslicense/#post-3584999)
 * If it’s code from the WordPress repository here then yes. All of the code here
   is GPL and you are free to do with it as you like provided you don’t try and 
   restrict others from doing the same.
 * That’s a little abbreviated and not a complete explanation but you get the idea
   I hope. 😉
 * If the code came from somewhere else then the answer is an unqualified “Maybe”.
   Where did you find that code and from which “free template”?
 * **Edit**: Doh! 2 minutes late!
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 1 month ago](https://wordpress.org/support/topic/using-code-from-free-templateslicense/#post-3585002)
 * > provided you don’t try and restrict others from doing the same.
 * So if you use code released under GPL, you cannot re-release it under creative
   commons?
 *  Thread Starter [op1001](https://wordpress.org/support/users/op1001/)
 * (@op1001)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/using-code-from-free-templateslicense/#post-3585005)
 * THis is just an example
 * I just went to the free templates right now.
 * on this site.
 * and here i picked this as the example ONLY..
 * Theme
 * Magazino..
 *     ```
       <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
       	<header class="entry-header">
       		<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'magazino' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
       	</header><!-- .entry-header -->
   
       	<?php if ( is_search() ) : // Only display Excerpts for search pages ?>
       	<div class="entry-summary post-content">
       		<?php the_excerpt(); ?>
       	</div><!-- .entry-summary -->
       	<?php else : ?>
       	<div class="entry-content post_content">
       		<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'magazino' ) ); ?>
       		<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'magazino' ), 'after' => '</div>' ) ); ?>
       	</div><!-- .entry-content -->
       	<?php endif; ?>
   
       	<footer class="entry-meta">
       		<?php magazino_posted_on(); ?>
       		<?php if ( comments_open() || ( '0' != get_comments_number() && ! comments_open() ) ) : ?>
       		<span class="sep"> | </span>
       		<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'magazino' ), __( '1 Comment', 'magazino' ), __( '% Comments', 'magazino' ) ); ?></span>
       		<?php endif; ?>
       		<?php edit_post_link( __( 'Edit', 'magazino' ), '<span class="sep"> | </span><span class="edit-link">', '</span>' ); ?>
       	</footer><!-- #entry-meta -->
       </article><!-- #post-<?php the_ID(); ?> -->
       ```
   
 * Could you use this code in your own theme?
 * that is what I meant..
 * again this is just an example..
 * and since i am here.. what is the purpose of adding the theme name in this line
   `
   <?php edit_post_link( __( 'Edit', 'magazino' ),`
 * ? I’ve seen it in a lot of code where they add extra ‘name template’
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 1 month ago](https://wordpress.org/support/topic/using-code-from-free-templateslicense/#post-3585007)
 * > Could you use this code in your own theme?
 * Yes, you’re pretty much guaranteed not to have licensing issues when using code
   from a theme distributed on WordPress.org.
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [13 years, 1 month ago](https://wordpress.org/support/topic/using-code-from-free-templateslicense/#post-3585011)
 * > So if you use code released under GPL, you cannot re-release it under creative
   > commons?
 * The GPL goes with the code so if you create something using GPL’ed code then 
   that code you have created (derived from) is GPL’ed too.
 *  Moderator [cubecolour](https://wordpress.org/support/users/numeeja/)
 * (@numeeja)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/using-code-from-free-templateslicense/#post-3585033)
 * > and since i am here.. what is the purpose of adding the theme name in this 
   > line
   >  <?php edit_post_link( __( ‘Edit’, ‘magazino’ ),
 * The theme name in that line denotes the text domain for internationalization 
   [http://codex.wordpress.org/I18n_for_WordPress_Developers](http://codex.wordpress.org/I18n_for_WordPress_Developers)

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Using code from Free templates…License?’ is closed to new replies.

 * 7 replies
 * 4 participants
 * Last reply from: [cubecolour](https://wordpress.org/support/users/numeeja/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/using-code-from-free-templateslicense/#post-3585033)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
