GC Testimonials
Adding a date in the testimonial (8 posts)

  1. Dereklee88
    Posted 2 years ago #

    Hi, just wondering anyone knows how to add the dates on when the testimonial is submitted and display it in the widget or full testimonial page? thanks!


  2. Dereklee88
    Posted 2 years ago #

    can someone please help? thankyou

  3. devnz
    Plugin Author

    Posted 2 years ago #

    Hi there, This is not currently built into the plugin, but if you open testimonials.php and add the below at around line 306, it will display the date.

    $display .= '<div class="date">'. mysql2date(get_option('date_format'), $testimonial->post_date) .'</div>';

    You will need to manually format it in your CSS file as no styles have been added for this. We are looking at adding this into another version of this plugin.

  4. Jan Rymarz
    Posted 2 years ago #

    Hi, I'd just like to echo the desire for a date submitted/posted for a future release.

    I can edit testimonials.php as required but stuck with the CSS file and styles. It's a foreign language to me!

    So, I'll continue saving the date in the Company Name field for now (in Admin Screen) and displaying that as that's irrelevant for me). NOt perfect but simple and works.



  5. Dereklee88
    Posted 2 years ago #

    hey. i've actually did it.

  6. Jan Rymarz
    Posted 2 years ago #

    Do you mean editing the testimonials.php file, or manually formatting it in your CSS file??

    I wouldn't even know where to start :/

  7. Dereklee88
    Posted 2 years ago #

    editing in the testimonials.php


  8. afinz
    Posted 2 years ago #

    The above solution posted by devnz worked for me, but the code was not on line 306 (I may have put it in the wrong place, but it still worked for me). I put it in between lines 350-385 where I wanted inside the function:

    function gct_single_testimonial($testimonial) {}

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • GC Testimonials
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.