Molongui
Forum Replies Created
-
Hi @dilinger,
Thanks for confirming. And sure, no problem, take your time. We will keep this ticket open.
Hi @dilinger,
thanks for testing that and providing such detail. We have followed the provided steps in order to reproduce the issue, but on step 2 we have
post_authorfield updated correctly. Even assigning a user with roleauthor.I think you didn’t mention, but I guess you are running latest plugin version (4.2.3), right? If you don’t, please update and check if the issue persists. If you do, my guess here is that either your theme or a third party plugin is preventing that field to be updated under certain circumstances. Could you check for a plugin conflict? Here you have a step by step guide on how to do that.
Depending on the number of active plugins you have, it might take a while to carry on the whole check. You can start by disabling all plugins but ours and switching to a default WP theme, like Twenty-twenty. And then check if the issue persists. If it doesn’t, activate all those plugins that you think doesn’t have anything to do with your posts. Then check again. If the issue shows up again, one of the activated plugins is the one to blame. If the issue is gone, then you can keep checking as described in the referenced support guide.
Please let us know what your findings are so we can look into it and find a fix.
Thanks!
Hi @dilinger,
thanks for checking all that! It is actually correct to now have ‘user-122’ in the ‘post_author’ field for that last added post. Did you actually publish that post and check what the byline displayed? Was it wrong? What did it display, user-122 name or guest-97710’s?
Hi @zerodotnine,
Oh, OK! Yes, now we see what you meant. Could you please let us know whether the “Display Name” field for those guests is filled in? If it is not, could you please fill it in for one of those guest and check if the name is then displayed?
Hi @zerodotnine,
The page you linked is displaying 4 authors: Test Author 3, Test Author 2, Test Author 1 and Test Panelist. I see all of them are guest authors so I don’t really understand what’s the issue. Maybe you have more guest authors that are not being displayed? Or maybe you want users to be displayed too?
Here you have the doc for the shortcode responsible to display that list. You might want to take a look at the “type”, “include_guests”, “with_posts”, “post_type” and “count” attributes.
If that doesn’t help, could you please try to provide a little more detail so I can understand what the issue is?
thanks for reporting the issue. And thanks for providing such detail. We have being trying to reproduce the issue on our testing server but we couldn’t. It seems to be working fine on our end.
There is one thing @dilinger pointed out that shouldn’t be like that, though:
the posts table has a post_author of ‘6’ for that post. The postmeta table has the _molongui_author and_molongui_main_author keys set to ‘user-113’ for that post.
The correct behavior in this case would be to have all three fields set to ‘user-113’. So @dilinger could you please try to edit that post (id=97472) doing this:
1) remove author 113 from the list of authors (for that post)
2) add a different author, no user-6 nor user-113. And save post.
3) Refresh the edit-post screen. Does the assigned author remains as you configured in step 2? If so, go to the next step.
4) remove the assigned author from the list of authors.
5) add the author user-113 as the author of that post. And save the post again
6) now go check the database. What is the value for the 3 fields you pointed out on your ticket (post_author and postmeta values)?
7) Is the link on the homepage working now?Please let us know so we can keep looking into this.
Just to let everyone reading this know, the issue reported on this ticket has been fixed in version 4.2.3.
Thanks so much for reporting @cgscomputers!
Hi @alexgff,
can’t thank you enough! Thanks again for letting us know. Fixed in the next update (4.2.4).
Hi @alexgff,
thanks so much for that! A fix will be included in the next update.
Hi @cgscomputers,
sure. We will post here the solution to the issue one it is resolved.
Hi @cgscomputers,
what do you mean by “main archive page”? Is it the posts/blog page? Could you please provide the link to it?
Hi @cgscomputers,
which version of the plugin do you have installed after updating? Please make sure it is 4.2.1. And if you have Pro, it should be 1.0.7. And please make sure to clear you caches after having updated.
Do you have access to the error log for your server? Could you please send a copy of it to our support email address?
Please let us know so we can assist you further.
Hi @alexgff,
thanks for reporting this! We have already addressed it and a fix will be included in the next update (4.2.1). Meanwhile, if you go to the settings page and “Save changes”, it should stop being reported into your log.
Hi @thenesh,
did you experience that issue from the start or did it just start to happen recently? Any update before starting to experience it? Maybe WP or theme?
Could you please share a URL we can check to start looking into it?
Hi @alexgff,
OK, following your request, we have added two new filters to the
get_postsfunction. They will be available since version 4.2.0, which is due to be released in a few days.New filters are:
1) One at the beginning of the function, so you have the option to short-circuit it:
/** * FILTER HOOK * * Allows third-party to filter returned posts list before it is generated. * * Passing a non-null value will effectively short-circuit the generation, returning that value instead. * * @param array $posts The posts list. Default null. * @param int $this->id Author ID. * @param string $this->type Author type. Can be either 'user' or 'guest'. * @param object $this->author The author's object. * @param array $parsed_args Array of parsed query arguments. * @param string|array $args Array or string of function arguments. Default null. * * @since 4.2.0 * @version 4.2.0 */ $posts = apply_filters( 'authorship/author/pre_get_posts', null, $this->id, $this->type, $this->author, $parsed_args, $args ); if ( null !== $posts ) return $posts;2) Another at the end of the function, filtering returned value:
/** * FILTER HOOK * * Allows third-party to filter returned posts. * * @param array $posts Array of retrieved author posts. * @param int $this->id Author ID. * @param string $this->type Author type. Can be either 'user' or 'guest'. * @param object $this->author The author's object. * @param array $parsed_args Array of parsed query arguments. * * @since 4.2.0 * @version 4.2.0 */ $posts = apply_filters( 'authorship/author/posts', $posts, $this->id, $this->type, $this->author, $parsed_args );Please note that the
get_postsfunction has been refactored, so you should take a look at it again.We hope this is just what you needed. If it wasn’t, please feel free to re-open this ticket and let us know.