Hi there,
Well, if you are using FeedWordPress, here is a quick way to do what it sounds like you are looking to do.
First, you’ll need to add some code to the functions.php file in your theme. Are you able to do this? (If not, let me know and I can offer some alternative options.)
In your functions.php, add the following code. Replace your own preferred values for the items in ALL CAPS.
add_filter('syndicated_item_author', 'my_syndicated_post_author', 20, 2);
function my_syndicated_post_author ($author, $post) {
$author = array(
'name' => 'JOE DOKES',
'email' => '[email protected]',
'url' => 'HTTP://JOEDOKES.COM/',
);
return $author;
}
If you want to make sure that this is correctly matched to an existing user in your system, the best thing to match up would be the email address in ’email’.
Note that doing this will make it so that incoming posts are stripped of any information about who authored them on the original source. This may not be a problem, if this information is already included in the content of those posts, or if it will be obvious from contextual factors who wrote it. But you may want to filter the content of posts so that some information about the author will be preserved in the post content even if it is not recorded in the wp_users table. To do this, you can add something like the following to your functions.php file, right around where you added the above author filter. (Feel free to change out the HTML in the single quotes to whatever message you want.)
add_filter('syndicated_item_content', 'my_syndicated_post_byline', 20, 2);
function my_syndicated_post_byline ($content, $post) {
$a = $post->author();
$content = sprintf('<p class="byline">By %s.</p>', $a['name']) . $content;
return $content;
}
Let me know if this helps fix your problem.