Skip to content
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

Sort by date or relevance #8

Open
ptz0n opened this issue Apr 26, 2013 · 2 comments
Open

Sort by date or relevance #8

ptz0n opened this issue Apr 26, 2013 · 2 comments
Assignees

Comments

@ptz0n
Copy link
Owner

ptz0n commented Apr 26, 2013

Is it possible to sort by date or relevance?

http://wordpress.org/support/topic/sort-by-date-or-relevance

Possible solution is to add sorting attributes to the query. This depends on data submitted via PageMaps. And only results with the specified sorting attribute will be returned when doing a search.

@ptz0n
Copy link
Owner Author

ptz0n commented Apr 29, 2013

Sorting by attribute actually requires the implementation of PageMaps and submitting them to Google via Webmaster Tools. This adds a lot of ifs and buts, when trying to make the plugin as straightforward to use as possible.

Only results that does have the specified attribute (ex. date) applied in the index will be presented when doing this kind of search.

I will start off by implementing the query part of this problem into the plugin. With that available you can easily setup your content PageMaps (sitemap or inline) and a sorter dropdown in the search.php template.

@ghost ghost assigned ptz0n May 8, 2013
@JosefJezek
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants