Community Forums › Forums › Archived Forums › General Discussion › Possible to create Custom Post Layout for certain posts?
Tagged: custom layout, posts
- This topic has 5 replies, 2 voices, and was last updated 10 years, 7 months ago by
Badlywired.
-
AuthorPosts
-
May 4, 2015 at 1:30 pm #150109
traction
MemberHi there,
I'm looking for a new post (not page) layout I can choose for certain articles; a large 1140px image above the default 2 column design, similar to this:
http://gearhungry.com/2015/04/tesla-model-s-70d.html
http://uncrate.com/cars/Prefer not to use plugin (unless there's a good one), and my web dev say this new layout isn't really possible for Posts - not sure I'm buying that.
Is this task possible? Can anyone please offer some insight?
http://www.tractionlife.com/
Thanks!
AmeeMay 4, 2015 at 3:17 pm #150118Badlywired
MemberMay 4, 2015 at 3:32 pm #150119traction
MemberTerrific, thank-you. Can you share how to do it?
May 4, 2015 at 3:44 pm #150122Badlywired
MemberYou want me to educate your web dev?
It would depend on your detailed requirements, but if it is as simple as you state 'for certain articles' I might use post formats to enable a specific designs per post see https://codex.wordpress.org/Post_Formats
An alternative would be to use a specific 'tag' or 'category' and when the post is in that 'tag' or 'category' is in play displaythe specific layout.
Or thirdly, I might use a custom metabox to select the post styling.
So there are at least 3 ways of doing this. It will take some coding, not just select an option.
What your web dev might be saying is
1) they don't know wordpress (at a coding level)
or
2) you are not paying them enough to do this level of customisation
My techy blog WordPress and stuff badlywired.com
May 4, 2015 at 4:54 pm #150135traction
MemberSimilar to Pages and Page Attributes option in sidebar, I'd like to choose the post layout I want for the particular post I'm doing.
If that's too hard, pulling the layout from the 'tag' or 'category' would work just as well.
I'm using a web dev service at the moment, so yeah, maybe I'm not paying them enough - didn't realize a new page layout is that tough.
Thanks.
May 5, 2015 at 2:56 am #150174Badlywired
MemberIts not tough. (but its not a page layout you want but a post layout'
Based on your requirements, I'd use ' post formats'. So you get an option in the side bar and I would use if you selected 'image' then it would use the big image layout.
Then it is a matter of 'tweaking' the layout code to display the big image.
Probably about 1 hours work for an experienced web dev. (or less if they were already familiar with your site / had all the logins etc, it often take 20 minutes of 'conversation' to get the right access and 20 minutes to work out what the previous web dev has actually done)
My techy blog WordPress and stuff badlywired.com
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.