Forums

Post on Thursdays between (1 post)

  1. expresa
    Member
    Posted 1 year ago #

    I need to show the post from the day Thursday of last week and Thursday of this week.

    Currently, I have configured Wordporess, for the start of week is Thursday.

    And the loop I use says the following:

    <? php
    $ week = date ('W');
    $ year = date ('Y ');
    query_posts ('post_status = publish, future & order = ASC & posts_per_page =- 1 & cat = 10.12'. "year = '. $ year.' & w = '. $ week) {while (have_posts ()): the_post ();?>

    It does not work, about the day Monday, stop showing the post.

    Not understand what happens, someone has an idea? As could show all my posts published in the week but the week beginning the day Thursday?

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic