Forums

Data-time formating in plugins (1 post)

  1. ceviz ms
    Member
    Posted 7 months ago #

    Hello there,
    There is a plugin called show-posts-shortcode.
    It is the simplest one I found which works with my theme.
    This plugin lists the posts with the specified category.
    It is simple, I use
    [showposts category="11" num="4" order="DESC" orderby="date"]
    and it does its job.
    I want to add dates next to post names :)
    <a href ="{$permalink}" title="{$post_to_show->post_title}">{$post_to_show->post_title}</a> this is the code where I need to add it. So I added {$post_to_show->post_date} next to it, which worked but with a full date and time format. So i googled it and found . mysql2date('j M Y', $post->post_date) . but it did not work.
    My programming (scripting?) is not enough to figure it out:)
    Can you please give me clue how to implement this?

Reply

You must log in to post.

About this Topic