Awake - Portfolio not showing Excerpts (using 3 columns shortcode)

resolved (6 posts) (2 voices)

  1. floravita
    Member

    I've been googling and googling and combing through this forum as well as through all the theme files, and I cannot seem to figure out why the excerpts aren't showing up in portfolio pages.

    I'd be happy to bypass the mysite excerpt and just insert the_excerpt() into the portfolio loop, but I can't seem to find a place where I can do that successfully. Here's page where the excerpts aren't showing up:
    http://floravitalights.com/staging/portfolio/orchid-symphony-reverse-painted-glass-chandeleir/gallery/chandeliers/

    here's the shortcode I'm using:
    [portfolio_grid showposts="50" column="3" cat="chandeliers"]

    We're on a typical Godaddy Shared Linux hosting.

    Posted 4 months ago #
  2. Elliott
    Support

    Hello floravita,

    Your talking about your portfolio page correct? If you want text to display beneath the images you can add some in the "Portfolio Teaser Text" field when editing your portfolio posts, http://mysitemyway.com/docs/index.php?title=Using_the_Portfolio#Excerpt_Text.

    Posted 4 months ago #
  3. floravita
    Member

    Elliott,
    Thanks for replying.

    Actually we have tons of portfolio items, which were previously authored (prior to purchasing Awake). The documentation implies that if no excerpt is specified, but the shortcode doesn't explicitly exclude the excerpt, the portfolio will load the 55-word default WordPress automatic excerpt. Is this not the case? And if it isn't the case, is there a way I can just insert <?php the_excerpt(); ?> into one of the theme files so the portfolio page will load the WP excerpt? I don't want my client to have to manually create an excerpt for all the portfolio items.

    Posted 3 months ago #
  4. Elliott
    Support

    That is for the blog posts, sorry about that. If you want to try and add the_excerpt the line you are looking for is 292 in /wp-content/themes/[your_theme]/lib/shortcodes/15-portfolio.php.

    $out .= ( ( !empty( $_teaser[$id] ) ) && ( strpos( $disable, 'excerpt' ) === false ) ) ? '<p>' . do_shortcode( $_teaser[$id] ) . '</p>' : '';

    Posted 3 months ago #
  5. floravita
    Member

    I appreciate you getting back to me.
    I'm not a programmer, but have been successful in the past making really basic changes to WP themes.

    I've tried adding the_excerpt in several places in 15-portfolio.php, but the best that results is the excerpts all appear at the top of the portfolio page, with the grid/prettyphoto thumbs etc all below the excerpts... So a pile of excerpts at the top, then the normal layout.

    Could you suggest a precise alteration to the code that I can try?

    I really don't want my client to have to manually re-do hundreds of excerpts... And to be fair, the documentation does imply that the theme falls back on the WP default excerpt, which clearly it doesn't.

    Thanks again, most sincerely for your help. We really like the theme and you did a great job with it.

    Posted 3 months ago #
  6. Elliott
    Support

    the_excerpt() will echo out the results, your probably wanting to use get_the_excerpt() like so,

    $out .= get_the_excerpt();

    Posted 3 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme