Site logo

Archived topic

Creating Portfolio Posts Separate from Blog Posts

22 replies · Started by Lina on October 6, 2022

Viewing posts 16–23 of 23

Is there additional php code that needs to be included in the Custom Post Type snippet to make sure these things are going to show up.

No, it doesn't require any PHP code.

Can you show me how your content template is set up, for example, how the image is added? What's the dynamic data setting for it?

you can upload screenshots to: https://postimages.org/ and share the links with us.

Well, for one, I don't seem to have the option of including a featured image on individual Portfolio Posts: https://postimg.cc/1fK0QDp0

On regular blog posts, I can put the featured image under the post section, but not on the individual Portfolio pages. I have a Block-Page Hero element set to display the header for all Portfolio posts, but no option to allow for the featured image. I must be missing something.

Well, for one, I don’t seem to have the option of including a featured image on individual Portfolio Posts:

That means this custom post type doesn't include the featured image, it's usually in the CPT's settings. Check with the plugin which creates the CPT.

Is the image a background image of the container block? did you choose it to be the featured image? if so, it won't show, as the cpt doesn't have a featured image. The image will only show if it's a static image.

The button block content is set to post meta, but you didn't fill in what post meta you want it to display, so it won't show on the front end.

Yes, this is why I mentioned php code.

I'm using the Code Snippets plugin. I've added this code: add_post_type_support( 'portfolio', 'thumbnail' );

and now the featured image for each page is showing up as a thumbnail on the Portfolio Archives page.

Is it possible to only have the featured image for each post show up on on the Archives page, but not on the single post type pages? On the individual pages, I'd rather have no image at the top.

Oh, I got it!
Thank you so much for your help, everyone. I really appreciate it.

Glad we could be of help!

This archived topic is closed to new replies.