Append/Prepend to Content

With this functionality, you can add content before or after the actual content of imported posts.

The Prepend option adds your own text before the original post’s content.
The Append option adds your text after the original post’s content.

wpra-feed-to-post-append-prepend-to-content-1

This content will be added to the post on the fly when the post is displayed, meaning you will not see this content when editing your imported posts. However, this also means that you can change this text at any time and the changes will immediately be visible on your site, as soon as you save the feed source.

You have a visual editor to enter content as if you were creating a normal WordPress post, and you also have access to the Text view.

Finally, you have the option to Append/Prepend only to singular posts. This will show the appended/prepended text only when viewing a post by itself and not when viewing a series of posts.

The Append and Prepend options also allow you to use placeholders, which are special text phrases that the plugin will convert according to what the placeholder represents.

Edit
Placeholder What will replace it
{{feed_name}} The name that you have given to the feed source.
{{feed_url}} The URL of the original site, or the URL of feed source if the feed did not specify the site’s URL.
{{post_title}} The title of the imported post.
{{post_url}} The URL of the imported post, on your site.
{{original_post_url}} The URL of original post, on the original site.
{{post_author_name}} The name of the post author.
{{post_import_date}} The date on which the imported post was imported.
{{post_publish_date}} The date on which the original post was published on the original site.
{{post_author_url}} The URL of the post author, if available.
{{meta : xyz}} The custom meta field ‘xyz’ of the imported post. Change ‘xyz’ to the name of any meta field you want.
{{source_meta : xyz}} The custom meta field ‘xyz’ of this feed source. Change ‘xyz’ to the name of any meta field you want.

You can hover over each placeholder in the plugin to see a tooltip that with a description of what the placeholder will be replaced with.

If you are using the url shortcode to show links like:

[[url={{original_post_url}}] My Link [/url]]

Then we recommend that you enter this from the Editor’s Text View to ensure that the placeholder works with the shortcode.

If you enter the following:

This post first appeared on {{feed_name}}. Read the <a href=”{{original_post_url}}”>original article</a>.

At runtime this will be parsed and the following will be the output:

This post first appeared on WP Mayor. Read the original article.

Note that I’m using a sample feed name and original post URL in the example, it will be different in your case.

The placeholders also integrate seamlessly with the editor, making it easy to insert elements, such as links, using the placeholders.

In the example below, I am demonstrating this by using the {{original_post_url}}placeholder in the editor’s link dialog.

wpra-feed-to-post-append-prepend-to-content-2