-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recent docs widget not showing latest docs #711
Comments
Hello @ParkLai - The widget sorts by 'modified', rather than publish date. Can you verify whether this is the behavior on your installation? You might help to debug by checking the |
Hi @boonebgorges, think it sorts by ID, as it only shows the first few uploaded docs regardless of their modified date. I'm looking at the file class-wp-widget-recent-docs.php, and tried adding the Can you point me on which file and how should I check the doc_query object? |
Sorry, I meant to give you this link in the previous comment: https://github.com/boonebgorges/buddypress-docs/blob/d69ab86a2fe6c6f3a61dca6425bc60a9208c3949/includes/templatetags.php#L134=
|
Yes, you're right. Seems like the |
When placing the Recent Docs Widget on a page, it always shows the first 4 (or the number set in "number of docs to show" setting) documents sorted by ID, instead of published date. Therefore the widget will always show the same docs regardless of the new documents being uploaded.
The text was updated successfully, but these errors were encountered: