Archived topic
Is something like this possible to do for a player profile?
73 replies · Started by Heath on April 19, 2022
It looks like you are not using CPT for the player's page, I checked the player's page, it is just a regular post.
I think the first thing you should do is to figure out how to create the CPT:
https://generatepress.com/forums/topic/is-something-like-this-possible-to-do-for-a-player-profile/#post-2206113
So I went back and did the 2nd step and I got oops that page can't be found.
Any other pointers?
I can't see the link as it's a preview link.
Is this the custom post type you created with Custom Post Type UI plugin?
Yes. It is but nothing shows up.
Can you provide admin access to your site? I can take a look at the backend.
Please use private info field for the login details.
Yes credentials provided
Input the link to the site as well.
It was a permalink issue, I logged in and hit the save button at dashboard > settings > permalinks, it's working now.
Thank you for figuring that out.
1. I don't see all of the fields that I input though. Any chance you know what is causing that?
2. Also is there a way to get the all of the fields to look something similar to this?
I'd like something similar for the player name, profile pic and the stats. Kind of lost on these next steps.
Now the CPT is created, you can build a block element - content template with the layout you want.
You can use headlineblock in the block element to outputs the custom field.
1. I don’t see all of the fields that I input though. Any chance you know what is causing that?
Not sure what you mean? Do you mean the front end or the backend?
If you mean the front end, it's normal behavior as you haven't called the custom field in the template, so they won't show.
If you mean the back end, then that's a question for the custom field/CPT plugin.
I mean when I look at the post, not all the fields are showing.
Do you mean the post in editor or the published post?
I'm sorry. The published custom post.
Sorry for the delay - your last reply slipped through our system.
I logged in to take a look.
First thing is to edit the Element titled: Player Profile and make these changes.
https://www.screencast.com/t/sIJ4otxIT
Then the second stage is to add your custom field data to that Block element.
To do this we add a
a. Headline block - the text you enter doesn't matter is it will be overwritten by the Custom Field.
b. Set the Headline Blocks Dynamic Data to Post Meta and in the Field Name add the ACF field name:
https://www.screencast.com/t/uRtiz3mIh
Repeat that for each of your ACF Fields.