- This topic has 22 replies, 4 voices, and was last updated 3 years, 5 months ago by
David.
-
AuthorPosts
-
October 10, 2022 at 2:55 pm #2369250
Ying
StaffCustomer SupportIs 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.
October 11, 2022 at 7:54 am #2370045Lina
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.
October 11, 2022 at 8:03 am #2370052Lina
Then, here is my Portfolio Archive Page: https://postimg.cc/bZ7MssYw
https://postimg.cc/gallery/TRfY02zBut the only thing that displays on the actual page is the blog title.
October 11, 2022 at 10:41 am #2370222Ying
StaffCustomer SupportWell, 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.
October 12, 2022 at 6:06 am #2370942Lina
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.
October 12, 2022 at 6:46 am #2370990David
StaffCustomer SupportYou can use a Layout Element to Disable the Featured Images for your single Portfolio posts:
https://docs.generatepress.com/article/layout-element-overview/#disable-element
October 12, 2022 at 6:52 am #2370998Lina
Oh, I got it!
Thank you so much for your help, everyone. I really appreciate it.October 12, 2022 at 7:15 am #2371027David
StaffCustomer SupportGlad we could be of help!
-
AuthorPosts
- You must be logged in to reply to this topic.