Add date to smooth slider
-
Would like to know how to add post date to slides
-
Any body?
Nest version of Smooth Slider will have option to display publish date as well as post category. The update is expected to release in a week. Thanks for your patience.
Any idea when this will be released, haven’t seen any update. Thanks
I am wondering if this is gonna be released soon, If not could someone send me the code to alter current slider? Thank you.
I hate to be a pest, because I really like how this slider works, unfortunately I need to show the post date in the slides. As you can see its been more than a week, and I really need this to work. Thank you.
Take it no ther is not gonna be am update?
Why won’t anyone help on this subject? It’s been over a month since the post about an update to add this function.
I wish this person wouldn’t had lied to me about an update, and that they had some sort of support for this plugin, because it is a nice plugin, but without support or even corispondence it makes it worthless. I would even pay for the two minutes it would take for someone to help me add the date to the slides, using the widget. But I guess I should have spent the last 2 months looking for a different slider from a different company. Was even thinking of spending the $8 to get the roster slider, but don’t think I like the fact that there is no support. It’s a shame, looked like they could have had a good thing going here.
any body!?
nothing?!
To add a date, you’ll need to edit this file:
/wp-content/plugins/smooth-slider/slider_versions/smooth_1.php
Find this section:
foreach($posts as $post) { $post_id = $post->ID;Directly below it, add:
$post_date = $post->post_date;Find this section:
if($permalink!='') { $html .= '<h2 '.$smooth_slider_css['smooth_slider_h2'].'><a '.$smooth_slider_css['smooth_slider_h2_a'].' href="'.$permalink.'">'.$post_title.'</a></h2><span '.$smooth_slider_css['smooth_slider_span'].'> '.$slider_excerpt.'</span>Using HTML and the $post_date variable, add the date somewhere within that code. I added mine after the </h2> tag and before the <span> tag.
There’s some similar code in the following ‘else’ statement. Consider adding your date there too.
If you want to add the author, do a similar thing using $post->post_author.
The topic ‘Add date to smooth slider’ is closed to new replies.