WordPress.org

Ready to get started?Download WordPress

Forums

HMS Testimonials
[resolved] Read more link behaviour (23 posts)

  1. adijeff
    Member
    Posted 7 months ago #

    Hi Jeff,

    Awesome plugin - thanks. My question is about the read more link behaviour. I am trying to show a page/widget of testimonies which are truncated -easy enough, but I want the read more link to go to a page containing the full version of that testimony. Is this possible without creating each page and link manually?

    In my mind this should be the default behaviour, which can then be over-ridden by adding a URL in the "Read more page" field. Thanks.

    http://wordpress.org/plugins/hms-testimonials/

  2. Jeff K
    Member
    Plugin Author

    Posted 7 months ago #

    In your WordPress dashboard navigation to Testimonials -> Settings.

    Item number 7 ("Read More" link) allows you to set the default link.

    From there you can then override it on an individual basis by using the "Read more page" field on the add/edit testimonial page. :D

  3. adijeff
    Member
    Posted 7 months ago #

    Thanks for the quick response. I understand what you say, but rather than a default page being say a page showing all testimonials, is there a way for the default link to be a full version of that single testimonial? Thanks.

  4. Jeff K
    Member
    Plugin Author

    Posted 7 months ago #

    Ah I see. At this time no, not without manually creating a page for each testimonial.

  5. adijeff
    Member
    Posted 7 months ago #

    OK, thanks, anyway.

    When clicking a "read more..." link, I would expect to go to the full article. Please consider this for a future update. Thanks.

  6. Jeff K
    Member
    Plugin Author

    Posted 7 months ago #

    Absolutely.

    What do you think of the following idea:

    You have a page that displays all testimonials. For example, this page is located at mysite.com/testimonials. (This will be the "Read More" link) in the settings.

    What I will do then, is adjust that Read More URL for every testimonial shown and append the ID to the URL. So it becomes mysite.com/testimonials?testimonial_id=5 or 6 or so forth. On the testimonial page, if it has testimonial_id it will only show that one instead of all of them.

  7. adijeff
    Member
    Posted 7 months ago #

    That is an excellent stop-gap solution, but I cannot get it to work. The page still shows the full list of testimonials.

  8. Jeff K
    Member
    Plugin Author

    Posted 7 months ago #

    Sorry. That is what I am looking to implement, not what is currently there. With requested features I like to get some feedback before I implement it. I might be able to do it this weekend.

  9. adijeff
    Member
    Posted 7 months ago #

    Hah, OK - I thought it was an undocumented feature!

    I've re-read your post, and you're suggesting the individual URL mysite.com/testimonials?testimonial_id=5 etc is the default behaviour, without having to manually add the link. This would be ideal.

    Thanks again for such quick responses.

  10. Jeff K
    Member
    Plugin Author

    Posted 7 months ago #

    Hey adijeff,

    I have a working version of this on my development site so the update should definitely come out tomorrow night at the latest. Look for version 2.2.5.

  11. adijeff
    Member
    Posted 7 months ago #

    Great - thanks Jeff. I look forward to 2.2.5.

  12. chappie
    Member
    Posted 6 months ago #

    Just checking here to make sure that v2.2.5 doesn't change the default behaviour since linking to a full page of testimonials suits me fine.

  13. Jeff K
    Member
    Plugin Author

    Posted 6 months ago #

    Yeah it will change it. I will throw in an option to adjust it. It will probably be opt-out though as most would want the new way. Sorry about that.

    It is the only thing I changed from 2.2.4 to 2.2.5 so feel free to wait for 2.2.6. I will probably push that tomorrow.

    Jeff

  14. chappie
    Member
    Posted 6 months ago #

    No problem, Jeff. I'll skip 2.2.5.

    I'm sure you're right that the majority will prefer the new functionality.

    Thanks for making HMS the best - and best supported - testimonials plugin.

  15. Jeff K
    Member
    Plugin Author

    Posted 6 months ago #

    Hey chappie,

    I have pushed the update. If you go to Testimonials -> Settings and uncheck 9. Append the testimonial ID to the default "Read More" link? it won't adjust the link.

  16. chappie
    Member
    Posted 6 months ago #

    Brilliant, Jeff. Thanks a million.

    At 6 hours, your updates come more often than buses in my neck of the woods.

  17. Jeff K
    Member
    Plugin Author

    Posted 6 months ago #

    Sure thing. I wish it could have been sooner but it's only 8:30am where I am right now.

    At 6 hours, your updates come more often than buses in my neck of the woods.

    That will be my quote of the day.

  18. adijeff
    Member
    Posted 6 months ago #

    Works perfectly - thanks Jeff.

  19. kaicho
    Member
    Posted 6 months ago #

    Sorry to barge in to somebody elses support request however the solution isn't ideal, not for me any way. Nearly but not quite!

    The main issue is that when I implement this the testimonial in question is isolated however the 'read more' is still applied and the message abridged accordingly.

    Also, it would be nice if there was a differentiating class applied so that a different style can be applied to the single view.

  20. kaicho
    Member
    Posted 6 months ago #

    Oh, I had a thought about the thumbnail image also. Why not apply get_the_post_thumbnail so that images aren't squashed? :
    https://codex.wordpress.org/Function_Reference/get_the_post_thumbnail

    Stirling work so far. Thank you for making this plugin available.

  21. Jeff K
    Member
    Plugin Author

    Posted 6 months ago #

    That was the point. When you click the read more link it will only show that testimonial. You can override the read more link on and individual basis or adjust the setting.

    Groups of testimonials are wrapped inside a div with an hms-testimonial-group class so you can target single testimonials or groups of them. By groups, that includes just displaying them all.

    This plugin does not use the standard posts table so get_the_post_thumbnail will not work.

    Jeff

  22. kaicho
    Member
    Posted 6 months ago #

    Aye, I checked the class and saw the db tables the plugin uses and that standard posts weren't used..

    And it seems odd to click on 'read more', the entry singled out but with no more to read. I'm not entirely sure what you meant concerning overriding on an 'individual basis' but it sounds far too labourious.

    Thanks for replying; the plugin isn't suitable for me at this time in this current form. But without your effort and every other developers efforts the platform wouldn't be what it is.

    Thanks and all the best.

  23. adijeff
    Member
    Posted 6 months ago #

    I avoided kaisho's squashed images, by setting the height to 0. This means the inline style only specifies width.

    The downside is that on the admin side, height is specified as "0" so the thumbnail does not show. I worked around this by adding this code to functions.php:

    add_action('admin_head', 'my_custom_fixes');
    function my_custom_fixes() {
      echo '<style>
    		.testimonial-image {
    			height: auto !important;
    			width: 150px;
    		}
      </style>';
    }

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.