WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Dereklee88
    Member
    Posted 8 months 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!

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

  2. Dereklee88
    Member
    Posted 7 months ago #

    can someone please help? thankyou

  3. devnz
    Member
    Plugin Author

    Posted 7 months 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
    Member
    Posted 7 months 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.

    Cheers,

    J

  5. Dereklee88
    Member
    Posted 7 months ago #

    hey. i've actually did it.

  6. Jan Rymarz
    Member
    Posted 7 months 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
    Member
    Posted 7 months ago #

    editing in the testimonials.php

    http://www.canaansuite.com

  8. afinz
    Member
    Posted 3 months 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) {}

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.