Community Forums › Forums › Archived Forums › Design Tips and Tricks › Minimum Pro demo missing Portfolio page template?
Tagged: minimum pro, Page Templates, theme demo
- This topic has 12 replies, 3 voices, and was last updated 9 years, 5 months ago by RavenManiac.
-
AuthorPosts
-
August 29, 2013 at 5:44 pm #59617psandersMember
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 #59625Brad DaltonParticipantYes. 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.
August 30, 2013 at 8:20 am #59690psandersMemberThanks 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 #59692Brad DaltonParticipantIt 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?
August 30, 2013 at 2:27 pm #59770psandersMemberHere'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 #59807Brad DaltonParticipantWhat header comment in the archive-portfolio.php file did you change?
Please link to the page.
September 3, 2013 at 11:38 am #60470psandersMemberI added the comment:
/*
Template Name: Portfolio
*/Previously, the comment was :
/**
* The custom portfolio post type archive template
*/The page for the portfolio is:
September 3, 2013 at 7:18 pm #60545Brad DaltonParticipantSeptember 27, 2013 at 8:59 am #64462psandersMemberActually, 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"></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 #144823RavenManiacParticipantI'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 404The 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 #144826Brad DaltonParticipantMarch 18, 2015 at 7:47 am #144827RavenManiacParticipantThanks 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 #144829RavenManiacParticipantBTW, I found this reference online which offers a few fixes for WordPress issues:
http://arkhamarchivist.com/the-two-most-common-fixes-for-wordpress-problems/ -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.