How do I display information about the source of syndicated posts

Contents

[ hide ]

    For more how-tos and advice, return to How Do I …?

    Q. How do I display information about the source of syndicated posts?

    A. There are two main ways to do what you want to do, depending on the trade-off you want to make between usability and flexibility.

    1. The “official” way to do this kind of thing in FeedWordPress — and the way to get the most flexibility and control over how the attribution is presented and what kind of information it includes — is to install one of the themes designed for FeedWordPress or to edit your own WordPress template files so as to add the attribution to your Post Loop. (You can edit template files directly from the WordPress administrative interface using Appearance –> Theme Editor, or you can edit them in a text editor on your own computer and upload them to your theme directory.)

      The Templates section of the Documentation Wiki documents the template tags that FeedWordPress provides when it is activated; the most important tags for this particular task are is_syndicated(), the_syndication_source(), and possibly the_syndication_source_link(). What you’d most likely be adding to your templates is a line something like this, wherever you want it added within your post loop:

      <?php if (is_syndicated()) : ?>
      <p>This post is syndicated from
      <a href="<?php the_syndication_source_link(); ?>"><?php the_syndication_source(); ?></a>.</p>
      <?php endif; ?>
      
    2. Alternatively, if your needs are relatively limited, you can also install a FeedWordPress Add-On like the Add Attribution for FeedWordPress add-on module. Add Attribution creates an Attribution Boilerplate section under the Syndication –> Posts & Links settings page. Compared to working directly with our templates, this method causes you to lose a lot of flexibility in what you can present, and where and how you can present it; but it is handled directly through the admin interface, without having to edit template files.

    Does that answer your question? If not, use the Talk page to comment on this post or contact me by e-mail for help. Be sure to describe what you are trying to do, and the problems you are running into, with as much detail as possible.

    For more how-tos and advice, return to How Do I …?

    This page is a Wiki! Log in or register an account to edit.

    Leave a Reply

    Your email address will not be published. Required fields are marked *