2015-03-20, 06:14:37
(2015-03-20, 05:18:35)Hypertexter Wrote: I tried to add author information to my posts, but I failed.
I added "define('NMSAVEAUTHOR', true);" to the gsconfig.php and "showAuthor 1" to the custom settings of NM, but nothing happens.
Existing posts (created before you enabled NMSAVEAUTHOR) don't have an author.
Either re-edit and save them again, or define a default author for those posts in Custom Settings:
Code:
defaultAuthor John
(2015-03-20, 05:18:35)Hypertexter Wrote: And when it works, will it make a meta information like "<author>John</author>", HTML5-like?
No, it will make something like this:
Code:
<p class="nm_post_author">Author: <em>John</em></p>
You can customize the markup for the author field container (default is p) with custom setting markupPostAuthor, however the author name will still be enclosed between <em>...</em> tags (currently hardcoded in the plugin).
(Again, this will be more customizable when support for post templating is implemented...)
I suppose that for 3.2 I can add another custom setting that allows changing that <em> by the markup of your choice...