WordPress.org

Ready to get started?Download WordPress

Forums

How to insert a copyright statement on each post? (31 posts)

  1. zaz
    Member
    Posted 9 years ago #

    I'm guessing that I'd have to create a field in the database, under something to do with posts, but when I look at the db, it doesn't seem as though the fields match up with the "titles" of things on the post. For instance, "File under" is filled in by the category (probably), but where is the thing that tells it to call it "File under"?
    I've looked at the .css files and the index.php file, but I'm not seeing where I would put the "title" and location where I want it in the post. Nor can I see how to add a field to the db.

    Help! Z

  2. vkaryl
    Member
    Posted 9 years ago #

    Okay, what exactly do you want this copyright statement to say? If it's something generic, such as "This post copyright to its original author", why not just add a statement such as that to The Loop for posts and comments?

  3. zaz
    Member
    Posted 9 years ago #

    Well, generic, yes, but with my name and the year.

    And what's "The Loop"?

    Thanks, Z

  4. vkaryl
    Member
    Posted 9 years ago #

    Usually found in your index.php file, The Loop is the "engine" which actually "runs" WP for the most part. Look for these line in the index.php file for your theme:

    <?php if (have_posts()) : ?> and <?php endif; ?>

    The stuff in between these lines is The Loop - that which produces the list of posts in your blog....

    Now, within that section you'll find a line similar to this:

    <p class="postmetadata">Posted in <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>

    What I would do, were this me, is to put something like the following just BEFORE the above line: Copyright &copy; 2005 and ff, ZAZ; all rights reserved.

    You don't need to use both the word copyright and the symbol, though some people prefer to do it that way; and the "ff" is publisher shorthand for "and following" - which covers you a bit if you forget to change the year on occasion.

    I'm sure someone could write a plugin to do this, and set it up to grab the current year from the server, but I'm no php/plugin wiz.... And note, please, that I'm just now doing this on my own test blog, just to make sure it works!

    [[Edit, added: yes, it works just fine, and shows up on all previous posts. Looks like you'll want to style it in the CSS to be the same size as the postmetadata - or y'know, maybe it can just be entered in the same paragraph section with the postmetadata before a<br />.... hmmm. Let me try that.... Yes, that's much nicer....]]

  5. Kafkaesqui

    Posted 9 years ago #

    A little more dynamic:

    Copyright &copy; <?php the_time('Y'); ?> and ff, ZAZ; all rights reserved.

  6. Kafkaesqui

    Posted 9 years ago #


  7. vkaryl
    Member
    Posted 9 years ago #

    See? I knew someone more "whizzy" with php would know a better way! Thank you kindly, Kafkaesquí - you're a prince as usual!

  8. moshu
    Member
    Posted 9 years ago #

    And if it is a website started years ago, you can modify it like:
    1999-<?php the_time('Y'); ?> etc. so it will always display 1999 and the present year :)

  9. vkaryl
    Member
    Posted 9 years ago #

    Hah! Beat me to it, moshu!

    Y'know, this is great for if you only have one theme. However, I have many.... so I guess I'm going to have to do an index.php template - as well as a sidebar one....

  10. jwurster
    Member
    Posted 9 years ago #

    So, this brings up a question - do you need to add a copyright message for the information in the entire blog? Something like:

    All information in this blog is copyright to the original authors. Nothing can be copied without written consent of the authors. Copyright © 2004-2005

  11. moshu
    Member
    Posted 9 years ago #

    You don't need to. But you can.

  12. Kafkaesqui

    Posted 9 years ago #

    I can move my custom code I use for site and post copyright into a plugin. If there's a need for it?

  13. jwurster
    Member
    Posted 9 years ago #

    Not knowing much about copyright, I would think that a plugin would be great to standardize the way a copyright notice is displayed in WP.

    This kind of goes along with displaying a standard disclaimer.

    Perhaps both of these items will be built into the next version of WP.

  14. vkaryl
    Member
    Posted 9 years ago #

    That would be nice, Kafkaesquí - would make life simpler by far, I think!

  15. Kafkaesqui

    Posted 9 years ago #

    "Perhaps both of these items will be built into the next version of WP."

    We'll see. :/

    "That would be nice, Kafkaesquí - would make life simpler by far, I think!"

    It simplified mine (well, not the writing of it). I'll pull it together tonight and make a note when I have it up.

  16. angsuman
    Member
    Posted 9 years ago #

    I provide a WordPress plugin to add copyright message to each feed item of a feed (rss or atom). The actual message is customizable.

    I can simply change (add just an exclamation mark) the code to make it display the copyright message per post on your blog if you so want. You can do it yourself too.

    BTW: I wonder why would you want to do it?

  17. Kafkaesqui

    Posted 9 years ago #

    Because we can?

    By the way, mine displays copyright year of a post/Page on posts/Pages, year for archive queries, and a range (first-last) elsewhere. It's sort of a global copyright.

  18. zaz
    Member
    Posted 9 years ago #

    Wow! See what happens when I sleep late. ;+) Thanks so much, all of you.

    I did manage to get a page copyright statement in, that was the easy part. I'm going to try out your suggestions, today. They sound like they'll take care of it all.

    I'm a writer, so I never know when I might blog something that I want to use later. So, I figured, better take care of it before it becomes an issue.

    Thanks, again,
    Z

  19. vkaryl
    Member
    Posted 9 years ago #

    Exactly, zaz. Pretty much my reasoning too.

  20. tomhanna
    Member
    Posted 9 years ago #

    Since a general copyright in the footer would be sufficient if all the posts were the same, it would seem the only reason to do it would be if you wanted to vary your copyright post-by-post.

    To do that, you could use the Custom Fields feature. Create a field called "Copyright" and then you could fill it in as you post. This post is "Copyright 2005 by me" and this post is "Released as public domain 2005 by me" and this post is "Creative Commons Share Alike Licensed 2005" and this post I had a brain malfunction and forgot to put anything...but it's still copyright by me under US and treaty law anyway...and so on.

  21. Kafkaesqui

    Posted 8 years ago #

    Not one for letting the critics crowd me out, here's my take on a copyright plugin:

    http://guff.szub.net/blog-copyright/

  22. TechGnome
    Moderator
    Posted 8 years ago #

    And if any one wants to see how it looks..... stop on by Tannagh- TG's World. Took me all of three minutes or so to install it and config it to my liking.

    Tg

  23. Kafkaesqui

    Posted 8 years ago #

    Hmm. I think the one thing that didn't occur to me was to make it "loop" aware. Or are you fine with the range of dates displayed, Tg?

  24. jwurster
    Member
    Posted 8 years ago #

    Excellent.

  25. TechGnome
    Moderator
    Posted 8 years ago #

    Kaf - I'm OK with it -- I didn't even notice it last night until I saw the other post about it. But it does look a little weird. If you can find a way I'll take it for a spin. If not, I can live with it.

    Tg

  26. Kafkaesqui

    Posted 8 years ago #

    Oh, I'll fix it, but the how is a little in question.

  27. zaz
    Member
    Posted 8 years ago #

    You know how sometimes life takes over? Well, that's what happened after I thanked all of your for your help, and wasn't that a good thing? Now, there's even more good stuff. Keep up the great ideas!

    Thanks, again. Z

  28. dmetzcher
    Member
    Posted 8 years ago #

    The simplest way to accomplish this on any dynamic Web site is to place the copyright notice in the footer file (in this case, footer.php). This will ensure that the copyright ends up on every page in the site, and WordPress is no exception, because its footer file is included on every page.

    My code is
    &copy; <a href="/index.php/copyright/">Copyright <?php the_time('Y'); ?></a> <a href="mailto:dennis@mymacblog.com">Dennis R. Metzcher</a> and <a href="http://www.cyerasolutions.com" target="_blank">Cyera Solutions, LLC</a>. All rights reserved.

    I always include a link to a more detailed copyright notice. In this case, there are also two links in the copyright text for me and my company that make it easy to send an email. It's simpler to just make the whole string of text one link to a detailed copyright notice, however.

  29. TechGnome
    Moderator
    Posted 8 years ago #

    dmetzcher -- while that may be the simplest, it isn't always the best way. Copyrights at the bottom of the page are optimal for protecting the site as a whole, but not necessarily the content itself. The best way to protect the content is to display the copyright by the poster.

    Tg

  30. angsuman
    Member
    Posted 8 years ago #

    @TechGnome
    Not having a copyright notice doesn't mean you don't have copyright on your content. By Berne convention[ http://www.law.cornell.edu/treaties/berne/overview.html ] you still do irrespective of whether the notice is there or not.
    So anyway you are protected.

Topic Closed

This topic has been closed to new replies.

About this Topic