- This topic has 7 replies, 3 voices, and was last updated 10 years, 6 months ago by .
- The forum ‘General Discussion’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
I'm trying to recreate in Genesis what this post teaches with custom post types.
Any help with trying to accomplish this?
And my end goal is a recipe database in my website.
This is what i use for my portfolio custom post type for videos and slide shows:
All you need to do is adjust the width in the CSS code for the featured images ion the portfolio style archive page for different child themes.
In the above code its 284 px for the focus themes however you could extend that to 360px for a theme like Eleven40
Brad - How do you add your custom meta fields, like 'dairy free', 'gluten free', etc?
Thanks Brad! This is exactly what I was looking for. You rock!
Hey Brad -
So I did everything you said. I'm now trying to display my fields on the correct page.
I have a custom field names course
I put <h2><?php the_field('course'); ?></h2> in the single-recipe.php template and it's not showing up.
You would need to use the correct code written to do exactly what you need.
The ACF website offer a range of code snippets and Nick has also written some code however none of these would simply be a copy and paste job for what you need specifically but rather a guide as to what you can do with custom fields.
I would suggest you start a new thread titled custom fields as this is very different to custom post types.
Once you get the code right, everything else is very easy with that plugin.
© 2024 WPEngine, Inc.