Home>Support>Post Loop – Additional Query, current week

Post Loop – Additional Query, current week

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

HI Friends,

Has anybody tried querying the post loop widget to view posts from the current week? I’ve tried this in the additional query box, but the functions grabbing the date don’t seem to work.

$current_year = date(‘Y’); $current_week = date(‘W’); year=$current_year&w=$current_week;

Any help would be greatly appreciated!

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 7 months ago Alex S
    Hi, I Work Here

    Hi Kyle,

    The additional field doesn’t support PHP.

    As such, this, unfortunately, isn’t possible at this time. I’ve marked this thread as a feature request. We often look through these threads to get ideas for what to add in our future updates. Hopefully, we’ll be able to add this in a future update.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More