• Resolved detroitwidget

    (@detroitwidget)


    Hi Guys,

    I’m using Genesis Portfolio Pro v1.2.0 with the new Breakthrough Pro Genesis theme.

    Is it possible to display the portfolio type name on single portfolio pages, similar to how tags and categories are shown on single post pages?

    Any advice greatly appreciated.

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Nick C

    (@modernnerd)

    Thanks for using Breakthrough and Portfolio Pro, @detroitwidget!

    You can display portfolio types below single portfolio page content by adding this PHP to the bottom of the theme’s functions.php file:

    add_action( 'genesis_meta', 'sp_portfolio_add_meta' );
    /**
     * Add portfolio meta to portfolio singles.
     */
    function sp_portfolio_add_meta() {
    	if ( is_singular( 'portfolio' ) && is_main_query() ) {
    		add_action( 'genesis_entry_footer', 'genesis_post_meta' );
    		add_filter( 'genesis_post_meta', 'sp_portfolio_set_post_meta' );
    	}
    }
    
    /**
     * Callback to adjust post meta to display portfolio types.
     *
     * @return string The meta for portfolio types.
     */
    function sp_portfolio_set_post_meta() {
    	return '[post_terms taxonomy="portfolio-type"]';
    }
    

    If you need help adjusting this further or making other theme customisations, I recommend the resources here: https://my.studiopress.com/community/.

    Thread Starter detroitwidget

    (@detroitwidget)

    Thanks for the help Nick.

    I inserted the code as written into the functions.php file, but no luck — There were no changes to the single portfolio pages.

    Any ideas?

    Plugin Contributor Nick C

    (@modernnerd)

    Have you cleared all browser, plugin, and any other caches, @detroitwidget?

    Testing locally, I see the following in Breakthrough under single portfolio items after the above change:

    Entry footer showing Portfolio types

    Thread Starter detroitwidget

    (@detroitwidget)

    Hi Nick,

    Clearing caches had no effect, but deactivating Genesis Simple Edits fixed it.

    Might be worth looking into.

    Thanks again for your help. Have a great weekend.

    Phil

    Same thing happens for me @detroitwidget.

    Genesis Simple Edits seems to override the display of the categories.

    I wonder if they could be called into place using Genesis Simple Hooks?

    Thread Starter detroitwidget

    (@detroitwidget)

    I don’t know.

    Eventually the Breakthrough theme turned out to be a disappointment for me, so I used something else. I haven’t used Portfolio Pro since.

    That said, you’d think that StudioPress could build plugins that played well together.

    Cheers.

    I know this is probably a real newbie question, but I am test-driving Genesis and Breakthrough Pro. I have created additional functions before but never without creating a child theme for fear of losing changes on updates.

    I suspect that Breakthrough Pro is essentially a child theme for Genesis.
    If this is the case and it never gets updated, can I assume my changes will stick?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Portfolio type name display’ is closed to new replies.