How to limit post contents being displayed in search results.
When I search for a phrase, wpforo displays a list with results.
This list includes some large posts in full content (e.g. 30+ rows) and other -also large posts- in 5 truncated rows only !?!
1.- What's the rationale for this behaviour?
2.- How can I limit (truncate) contents being displayed to 5 rows only, always?
This is designed t work this way. There is no option to limit the content which is being displayed.
I'll ask developers if there is an easy solution I can post for you.
I'm going to ask this question to wpForo developers.
We'll check and back to you asap.
please follow the steps to change the limit number you've mentioned:
1. Please read the doc for wpForo customization:
2. In search.php file located in wp-content/plugins/wpforo/wpf-themes/classic/ folder find the following line:
$body_len = 564;
and change the 564 as you like.
I respectfully request to only show "titles of topics and replies" in accordance with the security policies I have set for each forum. If they have Read Only access, then titles only display, if they have Read/Write, then show the smushed text, if they have No Access, then please hide these results appropriately from the search results.
I don't follow you well. If the topic is private the result is not found any way for usergroup members who don't have permissions to see it.