Site logo

[Support request] Creating Portfolio Posts Separate from Blog Posts

Home Forums Support [Support request] Creating Portfolio Posts Separate from Blog Posts

Home Forums Support Creating Portfolio Posts Separate from Blog Posts

Viewing 8 posts - 16 through 23 (of 23 total)
  • Author
    Posts
  • #2369250
    Ying
    Staff
    Customer Support

    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.

    #2370045
    Lina

    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.

    #2370052
    Lina

    Then, here is my Portfolio Archive Page: https://postimg.cc/bZ7MssYw
    https://postimg.cc/gallery/TRfY02z

    But the only thing that displays on the actual page is the blog title.

    #2370222
    Ying
    Staff
    Customer Support

    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.

    #2370942
    Lina

    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.

    #2370990
    David
    Staff
    Customer Support

    You 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

    #2370998
    Lina

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

    #2371027
    David
    Staff
    Customer Support

    Glad we could be of help!

Viewing 8 posts - 16 through 23 (of 23 total)
  • You must be logged in to reply to this topic.