-
-
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
-
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! -
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 …
-
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!
-
I am sorry, I did not undertand I had replace the string: is perfect. Thanks a lot. Best regards. Bruno
-
You must be logged in to reply to this topic.