Setup of advanced custom fields and post type

5 views
Skip to first unread message

donnasr...@gmail.com

unread,
May 6, 2025, 9:37:53 PMMay 6
to Minneapolis St. Paul WordPress User Group
Hi, WP Community,
I need some advice on getting the functionality I need with Advanced Custom Fields and Post Type.
I am in the middle of creating a website for a scout for a particular sport.  He will be tracking about 700 player profiles.   I've been able to setup  "Player" custom post types with the specific fields needed (fFName, LName, profile pict, DOB, position,  team/school, game summaries, etc.).  
The most important part of his website is to have ranking lists by birth year.  For example, Top 20 players for 2009 birth year, Top 20 players for 2010 birth year, Top 20 players for 2011 birth year.    (These will be dynamic lists that he will be updating pretty often.)  What would be a great approach for generating these lists?  Should I just do it by taxonomy using categories and tags?  Or is there a better way to do this?
Thanks,
Donna


Craig Schlegel

unread,
May 6, 2025, 10:32:25 PMMay 6
to mpls-stpau...@googlegroups.com
Sounds like a fun project!

If the scout doesn't need to have anything calculated and sorted other than the rank that is assigned, I think your plan would work. The way the data is handled could be something like:

Post Title - fFName, LName,
Featured image - profile pict,
Post Content -  game summaries,
Post meta using ACF - DOB, position,  team/school,

And I think you are right about how "Birth Year" could be a custom taxonomy. That seems to fit well.

For the "rank", I would think storing this as post meta through ACF would be best. This would allow for a custom query to sort by the rank and filter by the "birth year" taxonomy. Though the rank assignment might be the hardest thing to handle elegantly without some type of UI. You might need to have a handy reference list of what Players have a rank assigned all in one spot when setting this up.

Otherwise I would bet any of the AI models could come up with some suggestions too. I'm sure they could help with the custom queries to display the ordered players. Have you tried this yet? 

Hopefully this was helpful!

- Craig

--
You received this message because you are subscribed to the Google Groups "Minneapolis St. Paul WordPress User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpls-stpaul-word...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mpls-stpaul-wordpress/841163a6-9c4e-4669-9dc2-8bbe2a46527bn%40googlegroups.com.

David Arago

unread,
May 6, 2025, 11:44:07 PMMay 6
to mpls-stpau...@googlegroups.com

Hi Donna,  may I ask why not use the DOB? I am sure that you have a good reason. I think that depends how you are going to use the categories. Are the years the only categories associated to the post type?  If so, that may work. I would stay away from tags, too much chance for errors. 


Reply all
Reply to author
Forward
0 new messages