- This topic has 30 replies, 2 voices, and was last updated 1 year, 1 month ago by Tom.
December 19, 2019 at 11:48 am #1109105tenchystryder
Hi Tom and gang
This is for a brand new site. (no content yet)
I would like to know if there is a way to create a unique layout for certain posts, but I also need to create the fields that build that post.
Basically, lets say you have a sports person profile, I would like to create a new post, and on that page within admin also have the fields there to fill in like name, Age, Height, profile picture etc, then when you submit the post, the layout is unique to player profile. (bit like profile page on some forums etc)
If this is possible and once I get to grips with it, I could then use the same process to create lets say a sports ground review, etc etc.
I’ve looked at loads of plugins etc, but not found anything will do the job.December 19, 2019 at 6:57 pm #1109328TomLead DeveloperLead Developer
To do this, you would have to create custom post type templates: https://developer.wordpress.org/themes/template-files-section/custom-post-type-template-files/
In those, you would set up your HTML structure and add your meta fields where needed.
Let me know if you need more info 🙂December 20, 2019 at 7:35 am #1109861tenchystryder
I’ll take a look over the weekend thank you 🙂December 20, 2019 at 9:23 am #1109938tenchystryder
Just had a quick look at this. If i took this route would it not be within the theme and thus removed when GP updates?December 21, 2019 at 2:04 am #1110343TomLead DeveloperLead Developer
You’d want to use a child theme to avoid that: https://docs.generatepress.com/article/using-child-theme/December 21, 2019 at 2:57 am #1110364tenchystryder
I’m not good at child themes really 🙁
Was looking around this morning at my other site and am thinking I might be able to get away with using a combo of WooCommerce and a table plugin.
I would just have to remove all the price, stock and other stuff not needed and just use WC for it’s ability to split all the categories, tags and attributes and of course it’s layoutDecember 21, 2019 at 5:22 am #1110431tenchystryder
……….. And that won’t work. I’ll try and read up on the child themes 🙁December 21, 2019 at 10:45 am #1110732TomLead DeveloperLead Developer
Depending on the data you’re adding to the template, you might be able to use our Hook Elements instead of a custom page template.December 21, 2019 at 12:13 pm #1110767tenchystryder
Player profiles mainly Tom
age, height, goals scored, assists etc
Looking at child theme set ups now and i’m completely baffled 🙂December 21, 2019 at 12:14 pm #1110768tenchystryder
…. Also may work with posts, not just pages. I could use either and/orDecember 21, 2019 at 12:31 pm #1110780tenchystryder
This is way over the top but this page gives an example of the type of thing i need/want.
I know it’s never going to be that good, but trying to get an easy to use system and layout either in a post or page to achieve anything a quarter of this would be nothing short of a miracle. there will be loads of entries on the site hence an easy way to input it via a post/template type of thing.
Wish I was really good at this. My ambitions massively outweigh my abilityDecember 21, 2019 at 8:16 pm #1110934TomLead DeveloperLead Developer
Something like that would require quite a lot of custom coding, unfortunately.
You might be able to find a plugin that offers that kind of layout – seems like something a lot of people would find useful.December 21, 2019 at 11:27 pm #1110983tenchystryderDecember 21, 2019 at 11:29 pm #1110984tenchystryder
Ahhh, There you go
Warning: Invalid argument supplied for foreach() in /homepages/27/d767341814/htdocs/INFO_SUFC/wp-content/plugins/wp-club-manager/includes/admin/class-wpcm-admin-post-types.php on line 829 Warning: join(): Invalid arguments passed in /homepages/27/d767341814/htdocs/INFO_SUFC/wp-content/plugins/wp-club-manager/includes/admin/class-wpcm-admin-post-types.php on line 832December 22, 2019 at 1:36 am #1111023tenchystryder
Just found this Tom. How difficult is it to get GP working with this plugin as the plugin is quite good actually.
- You must be logged in to reply to this topic.