-
Notifications
You must be signed in to change notification settings - Fork 313
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
Weighting Engine: Post meta support #1690
Comments
Without support for ACFs I don't think that you can claim that your plug-in gives the answers you want first time., because it doesn't, in my case, give the answers I need at all. You should also check out the ACF Custom Database plug-in and see if you can build in support for that. |
Putting this back into needs discussion. I've dug back into the associated PR to see where we were at wit this feature. Currently the issue is:
Some of these issues would be easier to work around if the weightable fields list was 'flattened' from this: {
"post": {
"label": "Posts",
"groups": {
"attributes": {
"label": "Attributes",
"children": {
"post_title": {
"key": "post_title",
"label": "Title"
},
}
},
"taxonomies": {
"label": "Taxonomies",
"children": {
"terms.category.name": {
"key": "terms.category.name",
"label": "Categories"
},
}
}
}
}
} To something like this: [
{
"key": "post_title",
"label": "Title",
"group": "attributes",
"post_type": "post",
}
],
[
{
"key": "terms.category.name",
"label": "Categories",
"group": "taxonomies",
"post_type": "post",
}
] But this would break backwards compatibility with the There may be better options, but this is where I'm at right now. |
The way forward:
|
@felipeelia Assigned to you to review failing unit tests. |
Closed by #3068 |
Is your enhancement related to a problem? Please describe.
Registering meta keys requires additional effort. We can manage searchable meta fields if we provide a UI on the weighting engine.
Describe the solution you'd like
Adding post meta capabilities to the weighting engine would be a good solution.
Designs
Describe alternatives you've considered
Additional context
We might consider showing (read-only) meta fields that registered via
ep_search_fields
.The text was updated successfully, but these errors were encountered: