How do you allow guest posting ? Are you using a plugin ?
What is their WP role ? Subscriber, author or did you create a custom role for them ?
Give more details please !
https://wordpress.org/plugins/user-submitted-posts/
I’m using a plugin, within the plugin it asks you to assign an authors name to the submitted posts, which obviously is required for wordpress. On the frontend the name chosen by the author is displayed on the post using <?php the_author(); ?>.
I’m trying various ways around this, such as adding text to the content but I’m a total newbie with all coding and wordpress. I don’t care if the username is linked anywhere or any other information is displayed, I’d just like to be able to use the <?php the_author(); ?> line on the activity stream but I know its not that simple.
Logged-in user names are visible on the swa when the plugin is activated.
If you allow visitors to publish without login, things goes differently. Even if they have to provide a name, site url, category, title and content, which is IMO no gain in regard of the defaut register form, which has the same number of fields. And once they are registered, they can publish by just typing a title and a content…
After that, the name is stored as meta_key and the post content is associate to a default registered author.
Unfortunately in this situation, SWA can’t know the name and use the default author name instead, simply because meta_keys are not used by swa.
Maybe ask the plugin author for some enhancement for unregistered users ?
Thats a good idea, I hadnt considered that. Shall have a look at it right now.