WordPress.org

Support

Support » How-To and Troubleshooting » How to insert a copyright statement on each post?

How to insert a copyright statement on each post?

  • 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

Viewing 15 replies - 1 through 15 (of 30 total)
  • 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?

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

    And what’s “The Loop”?

    Thanks, Z

    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….]]

    A little more dynamic:

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

    See? I knew someone more “whizzy” with php would know a better way! Thank you kindly, Kafkaesquí – you’re a prince as usual!

    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 🙂

    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….

    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

    You don’t need to. But you can.

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

    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.

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

    “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.

    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?

Viewing 15 replies - 1 through 15 (of 30 total)
  • The topic ‘How to insert a copyright statement on each post?’ is closed to new replies.
Skip to toolbar