Epilogue
Phew! Well done, you got through the whole thing (or skipped to the end ?_?)
I've uploaded the final template (including the rest of TwentyEleven) as a GitHub project. Feel free to download, view, fork, manipulate, hack or look at it condescendingly.
Have some feedback or questions? Did I skip over something too quickly or was there something you wanted me to flesh out a bit more? Let me know in the comments or hit me up by using my fancy-pants contact form. I won't link it though, you have to find it yourself.
What now? Well here I'll list some other related tutorials that you might find interesting:
Wonderful! I was looking for a complete tutorial like that! I may ask later some question about some custom fields such as Size, Price or Medium for my painting gallery. But i guess i'll have a really good start in your tutorial here.
Thank you!
No worries, I'll be glad to help with any other questions you have.
I actually use a plugin on this website that adds in extra fields, "Custom Field Template".
I use it for my "websites" portfolio page. I have one field that I use to put the images that will go in to the image slider, and another field for the website URL.
Say you have a custom post type of "artwork", you can then add a custom field template that will only show up on "artwork" post types that include things like size, price and so on.
You can then show them in your template files using get_post_meta().
For example if you wanted to show price, you would use this code in your wordpress loop:
echo get_post_meta($post->ID, 'Price', true);
Hope that helps!
I use advanced custom fileds plugin for wordpress and i am using the code
<img src="" alt="Property" />
to display a custom image field type I created.
Following this tutorial how could i get those images to display rather than the featured post image?
That shouldn't be a problem. The function you're looking for is get_post_meta, you can find more info about that function here: http://codex.wordpress.org/Custom_Fields
Right at the bottom of that page is a template function that you can use to echo the custom field instead of the post thumbnail.
So say you set up your image using a custom field named "Large Image", you would use echo get_post_meta($post->ID, 'Large Image', true);
tag, you might need to experiment a little with it.
I imagine this would only echo out the URL for the image or something, so you may need to wrap the echo inside an
Awesome Thanks for the help got it working with the echo. Also had to put that php inside an img tag. LOL I am just learning but this was great to finally figure out how to do this.