[Resolved] Is something like this possible to do for a player profile?

Home Forums Support [Resolved] Is something like this possible to do for a player profile?

Home Forums Support Is something like this possible to do for a player profile?

Viewing 15 posts - 1 through 15 (of 74 total)
  • Author
    Posts
  • #2194182
    Heath

    I’ve included a screenshot of pretty much exactly how I want it to look with the photo and the box with stats. Is this possible without a plug in?

    #2194275
    Fernando
    Customer Support

    Hi Heith,

    Yes, this would be possible. You would need a Custom Post Type. You can create custom fields as well for instance for the Nationality, Position, etc. Then. you can dynamically retrieve these data, through a Block Element with a Headline Block.

    The same goes for the image. The player image can be the Featured image, then you can retrieve this through a Dynamic Image Block.

    You would probably need a third party plugin for the calendar.

    A side note: perhaps it would be also good to explore a third party plugin if you’re planning something big (including numerous players).

    Not sure how any of these work but they may also be worth a look: https://wptablebuilder.com/best-wordpress-sports-plugins/

    Hope this helps! 🙂

    #2194301
    Heath

    I should mention I’m only intesterested in the player picture and the box beside it listing some of their information.

    Is the custom post type still recommended and how do I do it without a plugin?

    #2194320
    Fernando
    Customer Support

    Are you wanting to create dedicated pages for each players? If there will be numerous players, it would be probably be good to create a Custom Post Type.

    Or, are you wanting to create these player profiles statically in one page, with all them listed. This would also be possible but, it would still be good to create a Custom Post Type if there will be a lot of players.

    If you have a Custom Post Type or another plugin to store the date of the players, then you’ll be able to dynamically retrieve their data as you please.

    Perhaps this article could give you an idea if you need a Custom Post Type or not: https://www.wpbeginner.com/beginners-guide/when-do-you-need-a-custom-post-type-or-taxonomy-in-wordpress/

    Hope this clarifies. 🙂

    #2206035
    Heath

    I have looked a little more into the custom post type but I’m still not sure how to actually get different boxes like shown in the image in the private field with the nationality, dob, height, Weight, etc.

    #2206045
    Fernando
    Customer Support

    Basically, if you already have a Custom Post Type, you can use a plugin like Advanced Custom Fields, and then add custom fields to your posts.

    Numerically speaking:

    1. Create a CPT for players
    2. Add custom fields like Nationality, Position, Height, Weight and Current Team.
    3. Then create your players and fill the custom fields you created.
    4. Custom field types like text can be handled by GenerateBlocks’ Headline Block through a Block Element. Example: https://share.getcloudapp.com/L1uRZJlo. You may also display the field through custom code. Either way, at this point, you would be creating the layout for the screenshot you sent, and displaying the value of the fields through code or Headline Blocks.

    Hope this clarifies. 🙂

    #2206110
    Heath

    I think I may slowly be understanding. So if I downloaded the Custom Post Type UI plugin…so now download Advanced Custom Fields plugin?

    #2206113
    Fernando
    Customer Support

    Yes, that would be one good approach to do it as mentioned.

    Here is an article I found showing how to do it through steps 1 and 2: https://medium.com/devblogcamp/easy-way-to-add-custom-post-type-and-custom-fields-in-wordpress-5f7921c1b0d0#:~:text=Yes%2C%20you%20could%20do%20that,are%20a%20lot%20of%20work.

    Hope this helps! 🙂

    #2209578
    Heath

    I’ve played around more with this and downloaded the plug-ins but I am still confused on how I’d get the information to look like the box in the screenshot.

    #2209662
    Fernando
    Customer Support

    For the archive page of your Custom Post Type for players, you may utilize a Content Template – Block Element. Then, use GenerateBlocks Blocks to create the layout. You’ll be needing to use a Headline Block to retrieve your custom field as mention previously.

    However, if you’re planning to display these player information boxes in pages/posts, you’ll need to style them manually depending on how you’re querying them. If through GenerateBlocks Query Loop Block however, you should be able to style it the same way you would in a Content Template.

    For instance, I created a CPT for players.

    Then, added custom fields to it: https://share.getcloudapp.com/5zuL6JP6

    Then, filled created a player, and set values to the fields, and a featured image for the player image: https://share.getcloudapp.com/mXuYLm2e

    Now, I created a Content Template – Block Element with dynamic Blocks: https://share.getcloudapp.com/X6uEPDKW

    Also see https://share.getcloudapp.com/8LuDOwqn

    Here it is rendered in my players archive page: https://share.getcloudapp.com/z8uL0nbA

    Hope this clarifies. 🙂

    #2219924
    Heath

    I have added the custom fields that I want and filled out a created player. When I went to preview it, it didn’t show anything. Maybe thetree is a step that I was missing. Some of this is confusing
    for me.

    #2220102
    David
    Staff
    Customer Support

    Hi there,

    can you share a link to a single player post ?

    #2221436
    Heath

    Yes. I have shared the link. It is a test post.

    #2221459
    Ying
    Staff
    Customer Support

    Hi Heath,

    So the screenshot in your original post is a single CPT page and it is what you want for single player page?

    If so, what’s the location set for the content template?

    Try set it to the single player page see if that works.

    Let me know!

    #2221471
    Heath

    I am so lost and this probably out of the scope of your support. I wanted a custom post type to be able to set up player profiles for certain players. I have no idea where to go to set it to single player page.

Viewing 15 posts - 1 through 15 (of 74 total)
  • The topic ‘Is something like this possible to do for a player profile?’ is closed to new replies.