• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Minimum Pro demo missing Portfolio page template?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Minimum Pro demo missing Portfolio page template?

This topic is: not resolved

Tagged: minimum pro, Page Templates, theme demo

  • This topic has 12 replies, 3 voices, and was last updated 10 years, 8 months ago by RavenManiac.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • August 29, 2013 at 5:44 pm #59617
    psanders
    Member

    I've just installed the Minimum Pro theme and was going about customizing, but the portfolio page in the demo just links back to StudioPress.

    The .php file for the portfolio archive and the single portfolio are in the theme folder, but it's not showing up in the dropdown for page templates for new pages. But even when I change the header comment to make it show up there, using the page template for the archive fails to populate the page with actual portfolio entries. Is there something I'm doing wrong?

    http://themes.minimumpro.seo.com/templates/portfolio/

    http://themes.minimumpro.seo.com/templates/portfolio/
    August 29, 2013 at 6:55 pm #59625
    Brad Dalton
    Participant

    Yes. You add new posts to it using the Add New under Portfolio in your Dashboards sidebar.

    You'll find the instructions in the setup details on the download page.


    Tutorials for StudioPress Themes.

    August 30, 2013 at 8:20 am #59690
    psanders
    Member

    Thanks for your response. Actually, I'm not having trouble adding new portfolio entries. It's the entire portfolio archive page which was missing. The archive-portfolio.php file is in the theme folder, but it doesn't populate the archive page with thumbnails of the portfolios I have.

    August 30, 2013 at 8:28 am #59692
    Brad Dalton
    Participant

    It should if you add the correct sized images as featured images to the posts assigned to that CPT. Have you touched the code at all?

    I know when you add that code to other themes you need to re-save the permalinks.

    Can you link to the CPT archive page please?


    Tutorials for StudioPress Themes.

    August 30, 2013 at 2:27 pm #59770
    psanders
    Member

    Here's the link to my portfolio archive page .

    I have updated the permalinks and changed the header comment in the archive-portfolio.php file to get Genesis to recognize it. That's all.

    I see the divs for one article in the source for the page, but they're empty. It may be that the printf function never executes in the archive .php file.

    August 30, 2013 at 7:05 pm #59807
    Brad Dalton
    Participant

    What header comment in the archive-portfolio.php file did you change?

    Please link to the page.


    Tutorials for StudioPress Themes.

    September 3, 2013 at 11:38 am #60470
    psanders
    Member

    I added the comment:

    /*
    Template Name: Portfolio
    */

    Previously, the comment was :

    /**
    * The custom portfolio post type archive template
    */

    The page for the portfolio is:

    http://themes.minimumpro.seo.com/templates/portfolio/

    September 3, 2013 at 7:18 pm #60545
    Brad Dalton
    Participant

    That's it. Always need a template name.


    Tutorials for StudioPress Themes.

    September 27, 2013 at 8:59 am #64462
    psanders
    Member

    Actually, I've learned that it's not the portfolio template that's the problem. It's that the archive-portfolio type (custom portfolio post type archive template, that is) isn't automatically creating the portfolio page and populating it with entries. This has happened on every install I've done of Minimum Pro. Any ideas?

    Here's what my archive-portfolio.php looks like:

    /**
    * The custom portfolio post type archive template
    */

    //* Force full width content layout
    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );

    //* Add even/odd post class
    add_filter( 'post_class', 'minimum_even_odd_portfolio_post_class' );
    function minimum_even_odd_portfolio_post_class( $classes ) {

    global $wp_query;
    $classes[] = ($wp_query->current_post % 2 == 0) ? 'portfolio-odd' : 'portfolio-even';
    return $classes;

    }

    //* Remove the entry meta in the entry header
    remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
    remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
    remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );

    //* Remove the entry content
    remove_action( 'genesis_entry_content', 'genesis_do_post_content' );

    //* Remove the entry image
    remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );

    //* Add the featured image after post title
    add_action( 'genesis_entry_content', 'minimum_portfolio_grid' );
    function minimum_portfolio_grid() {

    if ( $image = genesis_get_image( 'format=url&size=portfolio' ) ) {
    printf( '<div class="portfolio-image">%s</div>', get_permalink(), $image, the_title_attribute( 'echo=0' ) );

    }

    }

    //* Remove the entry meta in the entry footer
    remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 );
    remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
    remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 );

    //* Run the Genesis loop
    genesis();

    March 18, 2015 at 7:15 am #144823
    RavenManiac
    Participant

    I'm having a similar problem. For no apparent reason my Portfolio page just disappeared. The page still physically exists in the appropriate folder, but now when I click on the Portfolio button all I get is the following error message:

    ------------------------
    Not found, error 404

    The page you are looking for no longer exists. Perhaps you can return back to the site's homepage and see if you can find what you are looking for. Or, you can try finding it by using the search form below.
    ------------------------

    Does anyone know how to fix this?

    March 18, 2015 at 7:40 am #144826
    Brad Dalton
    Participant

    Try resaving your Permalinks.


    Tutorials for StudioPress Themes.

    March 18, 2015 at 7:47 am #144827
    RavenManiac
    Participant

    Thanks Brad. That worked perfectly.

    However, I'm not sure of what I just did. Why was reserving the Permalinks necessary?

    March 18, 2015 at 7:51 am #144829
    RavenManiac
    Participant

    BTW, I found this reference online which offers a few fixes for WordPress issues:
    http://arkhamarchivist.com/the-two-most-common-fixes-for-wordpress-problems/

  • Author
    Posts
Viewing 13 posts - 1 through 13 (of 13 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble