ipt-knowledgebase-theme-wp icon indicating copy to clipboard operation
ipt-knowledgebase-theme-wp copied to clipboard

Easy way bbpress => last comments

Open bibliata opened this issue 7 years ago • 8 comments

Would there be easy way to display last WP comments under the forum-like section at the bottom of front page (without having bbpress installed and implemented)?

bibliata avatar Jan 05 '17 17:01 bibliata

I don't think it would be possible without writing out your own plugin.

swashata avatar Jan 10 '17 06:01 swashata

Thank you. I think I managed it with some php code and no plugin.

On the plus side, I am using another plugin of yours I really likw (WP Feedback & Survey Manager) Are you planing on updating it soon so all functions can work under the new WP versions?

//THANKS

bibliata avatar Jan 12 '17 02:01 bibliata

WP Feedback & Survey Manager is actually deprecated long ago. I do have plans to make a lite and free version of eForm though. You can see the pro version and buy if you like :) https://iptms.co/geteform

swashata avatar Jan 12 '17 07:01 swashata

Thanks. I think I figured it out with some modifications. Now, where can I shorten the title of articles showing on front page I'd like everything to be equal length and right now longer titles are hanging over the 2nd line //THANKS

bibliata avatar Jan 27 '17 01:01 bibliata

That's a styling issue.

white-space: nowrap; overflow: hidden; text-overflow: ellipsis;

xewl avatar Jan 27 '17 10:01 xewl

Actually my question was about php trim on and more specifically in which template file to trim the_title to so many characters so it will show shorter on the front page widgets. Thanks!

bibliata avatar Jan 27 '17 13:01 bibliata

That depends on what of post/page you would like to have this effect on. If this is still the homepage like you mentioned, it would probably be the front-page.php-file. Otherwise, it would be a custom file, which has its value set in the currently set "homepage"-page, a singular page, or an archive page. This could help finding it in that case: WP Template Hiearchy

Edit: In case of this theme, it's probably the content-single.php or single.php file where you can find your destiny. (I've kinda been out of WP lately.)

My first comment is still valid tho', you're hurting your SEO by outputting it like this programmatically, via eg. substring(the_title(),0,30) I'd do it like this at style.css for a better example: .entry-header.page-header > .page-title { display: inline-block; (max-)width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

xewl avatar Jan 27 '17 23:01 xewl

Thanks The styling proposed did not do the trick. This particular theme does not follow front-page.php structure and has one. It uses boot strap from where it is hard to locate specifically which file calls the category widget titles. If we know that it will be easy to substring the titles

bibliata avatar Jan 27 '17 23:01 bibliata