Author Alias

Posted in: Newspaper
Post count: 7

I want to have author alias like Joomla do. Because i have guest writers and i don’t want to add them like author users. How can i manage this situation in wordpress. In customfields there is “author alias” I tried it but nothing changed. Can you help? Can it be done with code like if author alias custom field is full, article and visual composer show alias as author, if not user author.

  • This topic was modified 10 years by hceliktas.
Post count: 6535

HI

Unfortunately by default wordpress does not have such an options and the theme does not change the default behavior. However this could be possible if you add a new meta value. Here is an example: http://screencast.com/t/YLZSuF1xhttp://screencast.com/t/b8LsLtNlhttp://screencast.com/t/n69Vq5ZZU http://screencast.com/t/ZlkrXLR7kS

	if (isset($_GET['post'])){
		$post_id = $_GET['post'];
	}
	add_post_meta($post_id, 'alias', '', true);
<?php $alias = get_post_meta($td_mod_single->post->ID, 'alias', true);
                    echo $alias
                    ?>

This is just a basic example which can be customized in many different ways. Basically after you add the post meta is needed to be displayed on post pages. To achieve that must be edited the file which generate the post template used.
Note that this task involve some coding skills in order to be completed. If you still need assistance on this my advice is to look for someone who can help you with implementation as we can’t offer custom work at the moment.

Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.