[Support request] I used GPP to modify Blog archive & Blog singles. How do I apply to CPTS

Home Forums Support [Support request] I used GPP to modify Blog archive & Blog singles. How do I apply to CPTS

Home Forums Support I used GPP to modify Blog archive & Blog singles. How do I apply to CPTS

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1096503
    Josh

    How can I customize the display of my custom post type archive and single pages to match blog pages? Or how can i modify them at all? Thanks!

    #1096802
    David
    Staff
    Customer Support

    Hi there,

    how did you create the CPTs?

    #1098749
    Josh

    Just as normal with my own function using register_post_type();.

      //Create Past Work Post Type
      register_post_type('project', array(
        'public' => true,
        'labels' => array(
          'name' => 'Projects',
          'add_new_item' => 'Add New Project',
          'edit_item' => 'Edit Project',
          'all items'  => 'All Projects',
          'singular_name' => 'Project'
        ),
        'menu_icon' => 'dashicons-editor-help',
        'menu_position' => 7,
        'has_archive' => true,
        'publicly_queryable' => true,
        'supports' => array('title', 'editor','thumbnail'),
        'rewrite'=> array(
            'slug' => 'projects',
        ),
      ));
    #1099385
    Tom
    Lead Developer
    Lead Developer

    What do your blog pages look like?

    If you’re using columns, you can apply them to your CPTs like this: https://docs.generatepress.com/article/using-columns-in-the-blog/#adding-columns-to-your-custom-post-type

    Let me know 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.