Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Not returning results prior to a certain publish date
- This topic has 3 replies, 2 voices, and was last updated 2 years, 9 months ago by
Ernest Marcinko.
-
AuthorPosts
-
August 20, 2023 at 2:35 am #45124
Chris Roberts
ParticipantSFTP Port: 38185
This is a staging environment for the client’s live website. Currently, I am trying to get Ajax Search Pro to return accurate Guest Author results utilizing data from the Molongui Authorship plugin (https://www.molongui.com), as well as phrase/title/keyword search for all general (Post) Articles.
The Authorship plugin is kind of working for the most part, but appears to ignore articles posted prior to 2018. There are some that date back to around 2006.
Additional Info:
The Author meta is per article, not template based and is placed using an Elementor widget.
Also, this is copied from an email from the authorship plugin dev if it helps:
•••
“Now, if using WP default search widget is not an option for you, then you need to know this:
Guest Author is a custom post type. BUT keep in mind that you want to search for posts, not guest authors (even if the search is for guest authors) [unless I didn’t get your point…]
Post authorship is not stored in the post_author field from wp_posts table (like WP does by default). Relationships are stored in wp_postmeta table:

_molongui_main_author stores the first author for a post. Only one key per post.
_molongui_author stores each author for a post. As many entries as authors the post has.
meta_value column’s value contains the author type (user or guest) and the ID of the author… so if it is a user, then it is the ID of the wp_users table. But if it is a guest, it is the ID of the wp_posts table. Type and ID are always separated by a hyphen.
Basically, I guess you should search the “post_title” field in the wp_posts table for the user input string. If a match is found, get the ID(s) and search the wp_postmeta table for meta_key = _molongui_author where their value is “guest-ID”. Probably there are better ways to do it, but this would be my first approach.”
•••Any insight on how to access and return the articles prior to 2018 would be greatly appreciated!
–ChrisAugust 21, 2023 at 11:59 am #45134Ernest Marcinko
KeymasterYou cannot access this content.
August 21, 2023 at 1:09 pm #45138Chris Roberts
ParticipantYou cannot access this content.
August 21, 2023 at 5:02 pm #45149Ernest Marcinko
KeymasterThank you!
I have found the issue. There is a date filter enabled right here: https://i.imgur.com/onZsSHJ.png
That explains the problem. Make sure to change it back to “disabled” and it’s going to be all right. -
AuthorPosts
- You must be logged in to reply to this topic.