-
Notifications
You must be signed in to change notification settings - Fork 42
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
Enable WordPress Category to Organise WordLift Entities #442
Comments
In theory it should not be a problem to just attach the post categories to the entity "post type", and than you will be able to associate entities with existing categories. the more interesting question is what are the implications for the front-end or admin. where would there need to be any change of behaviour due to the association? IIRC, by default, even when you have the association there is no immediate noticeable user impact except for the menu and the category selection meta box |
Hi @markkap the main goal here is to ensure people can use entities as pages within the site and that they can group them in menus and sidebar menus. We had several cases where users end up using the advanced custom fields plugin in order to group entities. Another case is when I want an entity to be listed as part of my blog (i.e. I write an entity type=event and I want to see it on the homepage of my blog - https://wordlift.io/blog - where otherwise I only have articles). |
Do we have a specific test cases that we can work on? My perception is that is theme-related, and that the themes are loading |
A simple use case will be on the new taoroma.it where the user would like to create navigation menus for entities grouped them in 3 categories (earth - human - sky). Having entities appear in the list of the latest articles is theme related and should not affect our work. The main goal is to be able to create navigation menus using categories that works across article and entities. |
Can we schedule a quick call to see how this is being done with posts/pages on taoroma.it? |
If anyone just want to add the entity pages, or entity type archive into the menu system, it is possible without actually doing any coding, it is an "hidden" option in the menus admin page, for which you need to go into the screen options for that admin page. As @ziodave says, this probably needs a better definition of a use case as I can't right now see why would anyone want to use ACF here. |
per the discussion with @cyberandy and @ziodave I will make a test version inwhich it will be possible to associate post categories with entities, and show entities in the archive page of the categories it is associated with. The point of the test is to discover theme compatibility issues and how much of an advantage this configuration provides on the wordpress admin side |
pushed the experimental code to the feature/442.... branch. Do you need me to make a zip, or you just will get it from github? From what I see with my very poor local entities is that the design on the category page do not match in the 2017 theme. I actually not sure why. As for menus, I don't see any real impact on what can be selected and what is displayed. |
@markkap to recap let's:
|
Th reason post author and other information is not displayed in 2015/2016/2017 themes, is that they explicitly check that the post type is "post". It is not obvious that there is any way to override it. As for the categories menu, it seems like when filtering posts by category, the wordpress admin have an error when there are two post types being mixed together. I didn't investigate to the end why it happens, so there might be a way to explicitly override the error. |
Ok, nothing we can really do in this specific case. |
Some more wordpress core bugs.... It seems like the count of the number of "posts" which is displayed in the count column of the category listing page has no context and will always display the number of plain posts associated with the category, even when looking at it in the context of entities |
… just those that include only posts. see #442
In some cases it becomes very useful to have the WordPress Category available also for Entities.
Let's assume I'm creating a vocabulary for plants and flowers. Both are in WordLift things and a simple way to create a menu for plants and a menu for flowers would be to create two WordPress categories and use them for classifying entities as well as articles.
This also will blur the distinction between an entity and an article letting the user create richer experience within a specific domain.
The text was updated successfully, but these errors were encountered: