{"id":1153070,"date":"2016-08-18T06:24:00","date_gmt":"2016-08-18T13:24:00","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/prevent-from-taking-authorship-when-editing-community\/"},"modified":"2016-08-18T06:24:00","modified_gmt":"2016-08-18T13:24:00","slug":"prevent-from-taking-authorship-when-editing-community","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/prevent-from-taking-authorship-when-editing-community\/","title":{"rendered":"Prevent from taking Authorship when editing community"},"content":{"rendered":"<p>Hey Guys,<\/p>\n<p>I am inquiring with a question that is very similar to this thread:<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"OmXDGf9k66\"><p><a href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/edit-an-event-without-taking-over-authorship\/\">Edit an event without taking over authorship<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Edit an event without taking over authorship&#8221; &#8212; \" src=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/edit-an-event-without-taking-over-authorship\/embed\/#?secret=gr87LEULDS#?secret=OmXDGf9k66\" data-secret=\"OmXDGf9k66\" width=\"580\" height=\"327\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>I do not use BuddyPress, but my issue is the same.  If a user submits an event using the community events add-on and then I, as a site admin, edit the event (to fix spacing, or correct something), the WordPress Author changes to the admin account, instead of staying linked to the user who submitted it.<\/p>\n<p>I will not that I require an account to submit events, so all submissions are coming from users who have accounts.<\/p>\n<p>I also have a snippet in place to show the full list of users on the Author dropdown, since by default it only shows site admins and editors.  Here is that snippet for reference:<\/p>\n<pre><code>\/\/ Allow subscribers to show up in Author dropdown for events\/posts\nadd_filter(&#039;wp_dropdown_users&#039;, &#039;MySwitchUser&#039;);\nfunction MySwitchUser($output) {\n    \/\/global $post is available here, hence you can check for the post type here\n    $users = get_users( [ &#039;role__in&#039; =&gt; [ &#039;subscriber&#039;, &#039;administrator&#039;, &#039;editor&#039;, &#039;author&#039; ] ] );\n    $output = &quot;&lt;select id=\\&quot;post_author_override\\&quot; name=\\&quot;post_author_override\\&quot; class=\\&quot;\\&quot;&gt;&quot;;\n    \/\/Leave the admin in the list\n    $output .= &quot;&lt;option value=\\&quot;1\\&quot;&gt;Admin&lt;\/option&gt;&quot;;\n    foreach($users as $user) {\n        $sel = ($post-&gt;post_author == $user-&gt;ID)?&quot;selected=&#039;selected&#039;&quot;:&#039;&#039;;\n        $output .= &#039;&lt;option value=&quot;&#039;.$user-&gt;ID.&#039;&quot;&#039;.$sel.&#039;&gt;&#039;.$user-&gt;user_login.&#039;&lt;\/option&gt;&#039;;\n    }\n    $output .= &quot;&lt;\/select&gt;&quot;;\n    return $output;\n}<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-1153070","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Prevent from taking Authorship when editing community -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/prevent-from-taking-authorship-when-editing-community\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Prevent from taking Authorship when editing community -\" \/>\n<meta property=\"og:description\" content=\"Hey Guys, I am inquiring with a question that is very similar to this thread: Edit an event without taking over authorship I do not use BuddyPress, but my issue is the same. If a user submits an event using the community events add-on and then I, as a site admin, edit the event (to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/prevent-from-taking-authorship-when-editing-community\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/prevent-from-taking-authorship-when-editing-community\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/prevent-from-taking-authorship-when-editing-community\/\",\"name\":\"Prevent from taking Authorship when editing community -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-08-18T13:24:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/prevent-from-taking-authorship-when-editing-community\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/prevent-from-taking-authorship-when-editing-community\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/prevent-from-taking-authorship-when-editing-community\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Community Events\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Prevent from taking Authorship when editing community\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Prevent from taking Authorship when editing community -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/prevent-from-taking-authorship-when-editing-community\/","og_locale":"en_US","og_type":"article","og_title":"Prevent from taking Authorship when editing community -","og_description":"Hey Guys, I am inquiring with a question that is very similar to this thread: Edit an event without taking over authorship I do not use BuddyPress, but my issue is the same. If a user submits an event using the community events add-on and then I, as a site admin, edit the event (to [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/prevent-from-taking-authorship-when-editing-community\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/prevent-from-taking-authorship-when-editing-community\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/prevent-from-taking-authorship-when-editing-community\/","name":"Prevent from taking Authorship when editing community -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-08-18T13:24:00+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/prevent-from-taking-authorship-when-editing-community\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/prevent-from-taking-authorship-when-editing-community\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/prevent-from-taking-authorship-when-editing-community\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Community Events","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/"},{"@type":"ListItem","position":5,"name":"Prevent from taking Authorship when editing community"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1153070","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1153070\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1153070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}