Okay
  Public Ticket #1935088
Add Excerpt to Portfolio custom post type
Closed

Comments

  •  2
    Leroy started the conversation

    Hi Guys, 

    I want to add excerpt to portfolio Custom Post Type. Can you provide me with the best solution for this? 

    Thanks in advanced. :) 

    Cheers, Leroy

  •  1,801
    Support replied

    Hi Leroy,

    first you need to add support for excerpt. You can go to 

    pluginserger-functionality-pluginincludecustom-post-types-config.php

    and then change

     'supports' => array('title', 'editor', 'thumbnail'),

    to

     'supports' => array('title', 'editor', 'thumbnail', 'excerpt'),

    Then, you are able to use the_excerpt() function instead of the_content()

    https://developer.wordpress.org/reference/functions/the_excerpt/

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •  2
    Leroy replied

    Hi Guys, 

    Thank you for reply. But that file isn't on the theme folder. I have send screenshot. 

    Also I want to use both so the_content and the_excerpt. :) So we can control the preview tekst on the website. But still add content to the post. :) 

    Cheers, Leroy

  •  1,801
    Support replied

    Hi Leroy,

    Somhow the ticksy editor has altered the file path, it's

    /wp-content/plugins/berger-functionality-plugin/include/custom-post-types-config.php

    so it's not inside the Berger theme folder it's the Berger Functionality Plugin

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •  2
    Leroy replied

    Perfect. That worked for me. Thanks. 

    Cheers Leroy