Okay, so I am completely lost on how to display a custom post. I’ve looked everywhere and can’t seem to wrap my mind around it.
So, I downloaded the plugin Custom Post Type UI to create a custom post. Here are the parameters of my custom post type:
title,
excerpt,
thumbnail,
author
Then, I downloaded Advanced Custom Fields to give my custom post types some custom fields for users to edit.
I didn’t have any problems with that. My problem is that I have no idea how to implement this into my site. I would like it to act exactly like a blog post and also implement a masonry for it – just like my blog posts (I’m using the dante theme (I can’t post any more links)).
If anybody could help me out with this, or send me in the right direction, I would be so greatful. Thanks!
Your custom post type’s theme template would be called “single-[post type name].php”.
So for your example, you would want to create single-discount.php if your theme’s root directory. Then you can start pulling your data from the posts through that.
For Advanced Custom Fields, you’ll want to get familiar with get_field() and the_field(). ACF has great documentation on their site for how to use the various field types (http://www.advancedcustomfields.com/resources/)
To answer your questions in a general way, you could start by:
For the custom fields, @Joe has pointed you in the right direction.
Hope it helps!