• Resolved spiritschool

    (@spiritschool)


    I have applied the code for a specific category (newspapers) as shown below
    [catlist name=newspapers date=yes]
    but I could not find any date query code to show Current day posts (today’s post) of specific category.
    How to show post of current day and any specific day? Can any one help to with code example? thanks

    • This topic was modified 6 years, 3 months ago by spiritschool.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor zymeth25

    (@zymeth25)

    It’s described in the documentation. Please read carefully before opening a support thread.

    Example: [catlist after="-1 days"]

    Thread Starter spiritschool

    (@spiritschool)

    O yes… I read all but i was looking for today or specific date.
    anyways Thank you so much. Perfect..
    5 star rating for you.

    Plugin Contributor zymeth25

    (@zymeth25)

    For a specific date you have to combine after and before like this:

    [catlist after="2018/12/01" before="2018/12/03]

    Thread Starter spiritschool

    (@spiritschool)

    Issue found here in [catlist after=”-1 days”] to display TODAYS POSTS

    I have applied this short-code but it also displays yesterdays posts. I think this code pick the post of last 24 hours. If there is a gap of 24 hours between both posts, then shortcode works fine.

    Check That

    Plugin Contributor zymeth25

    (@zymeth25)

    Yes, unfortunately there is no way to fix this right away, it requires code changes that implement detecting current day and pulling appropriate posts. I will save this as a feature request.

    Thread Starter spiritschool

    (@spiritschool)

    Ok. i will wait for this feature.
    Overall LCP makes my site more attractive and easy to use.

    • This reply was modified 6 years, 3 months ago by spiritschool.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to Display Current Day post’ is closed to new replies.