Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

To increase the number of words display for Single Staff Member

Staff Member
    • 6 years, 11 months ago brnEnvato
      Participant

      Expired

      Hello. Please, how to increase the number of words display for Single Staff Member? In my page, the text is cut, incomplete

      https://www.palestradellascrittura.it:8181/ale-e-paolo/

      I found post a year ago, maybe it’s the solution?

      https://support.codeless.co/?topic=expanding-the-single-staff-word-count

      is the most updated solution?

      Thanks a lot and best regards. Bruno

    • 6 years, 11 months ago Medrit
      Participant

      Hello,

      That’s the solution to increase the number of words displayed for each single staff.
      Please go to file vc_templates/staff.php and find this line:
      $output .= '<p>'.codeless_text_limit(get_the_excerpt(), 25).'</p>';

      replace with this:
      $output .= '<p>'.codeless_text_limit(get_the_content(), 50).'</p>';

      Where 50 is the number of words to show. Increase it to your wish.

      Let us know.
      Best regards!

    • 6 years, 11 months ago brnEnvato
      Participant

      Expired

      Hello Medrit. From default file

      $output .= '
      
      '.codeless_text_limit(get_the_excerpt(), 255).'
      
      ';

      but the problem remains

      I do not understand: the original file already has the value set to 255

      $output .= '
      
      '.codeless_text_limit(get_the_excerpt(), 255).'
      
      ';

      but it does not show me all the text and if I try to edit the staff.php, it does not load the page, it remains white …

      • This reply was modified 6 years, 11 months ago by brnEnvato.
      • This reply was modified 6 years, 11 months ago by brnEnvato.
    • 6 years, 11 months ago Mirela
      Participant

      Hello,

      The function you have right now is to show 255 words from the excerpt text! Not content. While you need to show the content text. That’s what the replacement suggested does. It replaces the excerpt text with the content and also it increased the number of words to show. Please replace the entire line as suggested first.

      Let us know if you need further help.

      Best regards!

    • 6 years, 11 months ago brnEnvato
      Participant

      Expired

      I am sorry, I did not undertand I had replace the string: is perfect. Thanks a lot. Best regards. Bruno

Viewing 4 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password