• 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

Magazine Pro Theme Portfolio

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 › Magazine Pro Theme Portfolio

This topic is: not resolved

Tagged: portfolio

  • This topic has 9 replies, 2 voices, and was last updated 11 years, 6 months ago by lindebjerg.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • December 16, 2013 at 3:58 am #79433
    lindebjerg
    Member

    I have made a Portfolio Page in Magazine Pro, here:
    Please use this link to bypass the "coming soon" plugin: http://kletterhalle.weborbis.de/test
    then go to Portfolio Page: http://kletterhalle.weborbis.de/portfolio

    It all looks fine, but if you use the sorting links, there are suddenly 2 thumbs?
    http://kletterhalle.weborbis.de/portfolio-categories/aktion-fotos#sort

    I have made the portfolio page by copy/paste from another Theme, I cannot make it from zero myself.
    So I think I have to Remove the post image, but how?
    I have 4 Templates for the Portfolio section: single-portfolio.php, archive-portfolio.php, taxonomy-portfolio_cat.php and taxonomy-portfolio_tag.php

    Here the Portfolio archive template:

    <?php
    /**
     * 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' );
    
    // -----------------------Breaks the posts into 3 columns
    // @link http://www.billerickson.net/code/grid-loop-using-post-class
    add_filter( 'post_class', 'be_archive_post_class' );
    function be_archive_post_class( $classes ) {
      $classes[] = 'one-third';
    	global $wp_query; 
    	if( 0 == $wp_query->current_post || 0 == $wp_query->current_post % 3 )
    		$classes[] = 'first';
    	return $classes;
    }
    
    // Remove the post title
    remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
    
    // Remove the post info function
    remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
    
    // Remove the post image
    remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
    
    // Remove and replace the post content
    remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
    add_action( 'genesis_entry_header', 'child_do_portfolio_content' );
    function child_do_portfolio_content() {
    
        echo '<div class="portfolio-content">';
        
            echo '<a href="' . get_permalink() .'" title="' . the_title_attribute( 'echo=0' ) . '" class="portfolio-hover">';
    			echo the_title( '<h2 class="entry-title" itemprop="headline">', '</h2>' );
    		echo '</a>';
    		
    	    if ( has_post_thumbnail() ){
    	        echo get_the_post_thumbnail($thumbnail->ID, 'portfolio');
    	    } // if
    	    
        echo '</div>'; // .portfolio-content
    } // function
    
    // Remove the post meta and add custom taxonomy
    remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
    add_action( 'genesis_entry_footer', 'child_portfolio_do_post_meta' );
    function child_portfolio_do_post_meta() {
    
    	if ( is_post_type_archive( 'portfolio' ) OR is_tax( 'portfolio_cat' ) OR is_tax( 'portfolio_tag' ) ) {
    		echo '<footer class="entry-footer">';
    		    echo get_the_term_list( $post->ID, 'portfolio_cat', '<div class="entry-categories">', '', '</div>' );
    		echo '</footer>';
    	} // if
    	
    } // function
    
    genesis();
    http://kletterhalle.weborbis.de/portfolio
    December 16, 2013 at 4:12 am #79434
    lindebjerg
    Member

    I have found the mistake myself!
    I just have to write here, then I mostly find the mistake in a minute;)

    // Remove the post image
    remove_action( 'genesis_entry_content', 'genesis_do_post_image' );

    In taxonomy-portfolio_cat.php and taxonomy-portfolio_tag.php I changed it to

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

    and it rocks;)

    December 16, 2013 at 7:10 am #79445
    Brad Dalton
    Participant

    Looks like you worked it out with the 3rd parameter. The best code to use to create a portfolio is in the Executive Pro theme.


    Tutorials for StudioPress Themes.

    December 16, 2013 at 8:24 am #79465
    lindebjerg
    Member

    okay, I have used some code from this theme: http://demo.thestizmedia.com/latent/
    and the “Custom Post Type – Portfolio” Plugin. I like the sorting function and have no idea have to code it myself;)

    I have just setup 5 Portfolio articles to test responsive and float. The Portfolio seems to work fine, or?

    I have another problem, sometimes by loading the site, text, or titles scale down.
    First they are big then they get he right size?

    Have you seen this before? or on my site now?
    I have only this problem in Chrome on Mac, no problems in Safari.

    December 16, 2013 at 9:23 pm #79641
    Brad Dalton
    Participant

    Looks ok to me but didn't test on Mac.

    Isn't the sort function included in the theme?


    Tutorials for StudioPress Themes.

    December 17, 2013 at 2:02 am #79696
    lindebjerg
    Member

    The sort function was included in the Latent Theme.
    I have just taken all about the Portfolio and places it into the Magazine Pro Theme.

    I mostly only make css changes. But I hope this is a solid way to get the Portfolio with sorting into Genesis. I can send you a copy of "my Theme" if you want to have a look inside?

    December 17, 2013 at 3:39 am #79704
    Brad Dalton
    Participant

    Thanks [email protected]


    Tutorials for StudioPress Themes.

    December 17, 2013 at 5:36 am #79732
    lindebjerg
    Member

    A message that you sent could not be delivered to one or more of
    its recipients. The following addresses failed:
    <[email protected]> ?

    December 17, 2013 at 6:52 am #79741
    Brad Dalton
    Participant

    Just the email address.


    Tutorials for StudioPress Themes.

    December 17, 2013 at 8:24 am #79756
    lindebjerg
    Member

    First time it did not work, I have just send you the theme;)

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 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