Closed julia-elias closed 2 weeks ago
Once we have all of this sorted out on the live page let's get rid of the old designations on the WP dashboard end so there's no confusion (we should only need the new "Team Category" check box and not the others like "Team Semster" "Team Designation," etc.
An explanation for the devs (@julia-elias, @EthanL06, @Tominium, @DavidLungu) on how we can remove these modules:
Go to a staff members WP Admin edit page and see what the name of these modules are. Or any other identifiying attributes. Like for "Team Designation" if you hover over the "Add new category link you will see team_designation
in the URL. This tells us the taxonomy must be related to "team_designation" so we will search the theme code for that.
"taxonomy" what's that!?
Searching the theme code:
"register_taxonomy" tells me this is where the taxonomy is set up, so lets check that out.
_
register_taxonomy
is a WordPress function used to create custom taxonomies, allowing you to group content in ways beyond the default categories and tags. This function can be applied to one or more post types and allows for hierarchical (like categories) or non-hierarchical (like tags) classifications._
From reading the register_taxonomy
docs in the link above I see that show_ui
might have to do with what we want. So I'll set the src/Managers/Structures/PostTypes/Team.php
registerTeamDesignation
function to false
, refresh the WP Admin staff edit page and I see the "Team designation" module is gone!!
WordPress (coding in general) is all about relationships & refrences. Also, referring to docs are essential.
Using this knowledge will make you a WordPress professional in no time :)
@EthanL06
One issue i found was the Member Display Link ACF not working as it should & I think the ACF related and the template code was overwritten in a git merge. So we will need to bring that back.
Let me know of any questions you have. Thanks!
We need to change the "Team category" for each team member on the staff page so that it matches up with the new Team categories we've created (as seen in photo).
Here is a link to a list of all the Team members and the categories that they should be assigned - https://docs.google.com/document/d/1XV6O2SrD-ZUfr4ND1luAAbUIwXw8Y_TIQTb0oh4YM9E/edit?usp=sharing.
Updating each Team Member's Category
Sign into the WP Admin dashboard.
Navigate to the list of Team members in the dashboard.
Search for the team member in the search bar or manually find their page. In this case, we're looking for Lee Anh Kahlor.
Hover over the team member's name, and select the "Quick edit" option on the team member's page.
Under the "Team category" option, uncheck the Team member's old category if it doesn't match up with their new Team category. For Lee Anh, she is designated as a Principal Investigator, so we will check that option.
Select the "update" button, and go view the Staff page to make sure the team member's icon and info is appearing under the correct category.