• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to user navigation

PopWP

WordPress and Genesis Tutorials

  • Get Started
  • About
  • Archive
  • Services
  • Membership
  • My Account

Add Portfolio Title and Content on Portfolio Page in Pretty Creative Pro

Last Updated on September 26, 2018 Favorited: 0 times

We can overwrite the archive-portfolio.php function of theme file which removes these.

Add this in functions.php

//* CPT TITLE and post content
add_action('genesis_before', 'gk_add_cpt_contents');
function gk_add_cpt_contents()
{
    if ( ! is_post_type_archive('portfolio') ) {
        return;
    }
    // Add the entry title (requires HTML5 theme support)
    add_action('genesis_entry_content', 'genesis_do_post_title', 15);

    // Remove the post content
    add_action('genesis_entry_content', 'genesis_do_post_content', 20);
}

We can also use an additional filter to remove read more link. use this only

//* CPT TITLE and post content
add_action('genesis_before', 'gk_add_cpt_contents');
function gk_add_cpt_contents()
{
    if (! is_post_type_archive('portfolio') ) {
        return;
    }
    // Add the entry title (requires HTML5 theme support)
    add_action('genesis_entry_content', 'genesis_do_post_title', 15);

    // Remove the post content
    add_action('genesis_entry_content', 'genesis_do_post_content', 20);

    //remove read more
    add_filter('get_the_content_more_link', 'gk_cpt_read_more_link');
}

function gk_cpt_read_more_link() {
    return '';
}

 

Related Posts

  • Widget showing latest Post from Current Category Archive in Genesis
  • Filterable Portfolio in Startup Pro
  • Customize Deal custom post types Archive Page in Genesis
  • Custom Portfolio Archive in Genesis
  • Filterable Portfolio on front page in Genesis

Categories: Free Content, Genesis Tutorials Tags: Archive, Portfolio, Pretty Creative Pro

Reader Interactions

Primary Sidebar

Search

WPEngine WordPress Hosting, Perfected.

Hosting You are looking for?.
Perfect solution for small business to global enterprise.

Learn more

StudioPress Genesis Theme Framework

The No.1 Theme Provider.
Creative, SEO rich Theme for all niche projects.

Learn more

Categories

  • Free Content
  • Genesis Tutorials
  • Premium Content
  • Snippets
  • What's New?
  • WordPress Tutorials

Tag Cloud

Archive Background Section blog canvas menu center logo columns conditional tags CSS CSS Grid custom Customizer custom post type Custom Post Types custom template Custom Widget effect eNews Extended Featured Image front-page Genesis Genesis Sample header right hero section Image Background js layout left menu Logo menu Navigation Menu newsletter post page related posts responsive menu search search widget Shrinking Logo site header slide in-out Stylesheet Template Utility Bar Video Background widgets WordPress

Built with Genesis Framework + WordPress by Aryan Raj

  • Contact
  • FAQ
  • Disclaimer
  • Privacy Policy
  • Copyright Policy
  • Terms of Service