Skip to content
GravityKit
Buy
Sign in
0 items
  • Plugins

    GravityKit All Access

    Our complete Kit of essential tools for extending and enhancing Gravity Formsโ€”everything you need to build powerful web apps and workflows.

    Learn more
    • GravityView

      GravityView

      Bestseller

      Display Gravity Forms entries on the front-end of your site and build powerful web applications.

    • GravityImport

      GravityImport

      Trending

      Import entries from CSV files into Gravity Forms to transfer data, create new forms, or update existing entries.

    • GravityEdit

      GravityEdit

      Quickly edit Gravity Forms entries inline to save time, reduce clicks, and streamline your workflow.

    • GravityCharts

      GravityCharts

      Trending

      Turn Gravity Forms entries into interactive charts and graphs.

    • GravityActions

      GravityActions

      Update multiple Gravity Forms entries at once, send bulk emails, and streamline your workflow.

    • GravityCalendar

      GravityCalendar

      Turn Gravity Forms entries into dynamic calendars to showcase events, schedules, appointments, and more.

    • GravityExport

      GravityExport

      Export Gravity Forms entries to Excel, CSV, or PDF and share them instantly with secure download links.

    • GravityMath

      GravityMath

      Perform advanced calculations on Gravity Forms entries to display totals, averages, or build custom calculators.

    • GravityRevisions

      GravityRevisions

      Track, compare, and restore changes made to Gravity Forms forms and entries with a full version history.

    • GravityMigrate

      GravityMigrate

      Migrate all Gravity Forms data, including forms, entries, Views, feeds, uploads, and more.

    • GravityBoard

      GravityBoard

      Manage projects with collaborative project management. Coordinate with your team and streamline your workflows.

  • Ideal For

    • Nonprofits
    • Startups
    • Education
    • Web Agencies
    • Developers
    • Government iconGovernment
    Explore All Use Cases

    Case studies

    • West Fork Schools
    • Princeton University
    • BrightLeaf Giving
    • Jacksonville Port Authority
    • National Severe Storms Lab
    • Leadpal
    • Mediebruket
    • Dragonfly
    View All Case Studies
  • Resources

    • Blog
    • Case studies
    • Support
    • Live Demos
    • Documentation
    • Developer docs
    • GravityKit Academy
    • GravityKit Live!

    Ultimate guides

    • How to use Gravity Forms
    • Editing Gravity Forms entries
    • Importing Gravity Forms entries
    • Exporting Gravity Forms entries
    • Displaying Gravity Forms entries
    • Gravity Forms conditional logic
    • Gravity Forms calculations
    View More Articles
  • Plugins

    • GravityView

      GravityView

      Bestseller

      Display Gravity Forms entries on the front-end of your site and build powerful web applications.

    • GravityImport

      GravityImport

      Trending

      Import entries from CSV files into Gravity Forms to transfer data, create new forms, or update existing entries.

    • GravityEdit

      GravityEdit

      Quickly edit Gravity Forms entries inline to save time, reduce clicks, and streamline your workflow.

    • GravityCharts

      GravityCharts

      Trending

      Turn Gravity Forms entries into interactive charts and graphs.

    • GravityActions

      GravityActions

      Update multiple Gravity Forms entries at once, send bulk emails, and streamline your workflow.

    • GravityCalendar

      GravityCalendar

      Turn Gravity Forms entries into dynamic calendars to showcase events, schedules, appointments, and more.

    • GravityExport

      GravityExport

      Export Gravity Forms entries to Excel, CSV, or PDF and share them instantly with secure download links.

    • GravityMath

      GravityMath

      Perform advanced calculations on Gravity Forms entries to display totals, averages, or build custom calculators.

    • GravityRevisions

      GravityRevisions

      Track, compare, and restore changes made to Gravity Forms forms and entries with a full version history.

    • GravityMigrate

      GravityMigrate

      Migrate all Gravity Forms data, including forms, entries, Views, feeds, uploads, and more.

    • GravityBoard

      GravityBoard

      Manage projects with collaborative project management. Coordinate with your team and streamline your workflows.

    GravityKit All Access

    Our complete Kit of essential tools for extending and enhancing Gravity Formsโ€”everything you need to build powerful web apps and workflows.

    Learn more
  • Ideal For

    • Nonprofits
    • Startups
    • Education
    • Web Agencies
    • Developers
    • Government iconGovernment
    Explore All Use Cases

    Case studies

    • West Fork Schools
    • Princeton University
    • BrightLeaf Giving
    • Jacksonville Port Authority
    • National Severe Storms Lab
    • Leadpal
    • Mediebruket
    • Dragonfly
    View All Case Studies

    How to build...

    • Property Management
    • Product Catalog
    • Fundraising Dashboard
    • Real Estate Directory
    • Document Library
    • Academic Journal
    • Volunteer Management
    • Meal Tracker
    View All Guides
  • Resources

    • Blog
    • Case studies
    • Support
    • Live Demos
    • Documentation
    • Developer docs
    • GravityKit Academy
    • GravityKit Live!

    ultimate guides

    • How to use Gravity Forms
    • Editing Gravity Forms entries
    • Importing Gravity Forms entries
    • Exporting Gravity Forms entries
    • Displaying Gravity Forms entries
    • Gravity Forms conditional logic
    • Gravity Forms calculations
    View More Articles
  • Pricing
  • About
0 items

Search

Results appear automatically as you type.
Loading results…

results found matching

    Sign in
    Buy

    Docs

    • Docs Home

    Gravity Forms Add-Ons

    • GravityView
    • GravityActions
    • GravityBoard
    • GravityCalendar
    • GravityCharts
    • GravityEdit
    • GravityExport
    • GravityImport
    • GravityMath
    • GravityMigrate
    • GravityRevisions
    • GF Widget for Elementor
    • GF Dynamic Lookup
    • GF Entry Tags
    • GF Event Field
    • GF Zero Spam
    • GravityExport Lite

    GravityView

    • Getting Started
    • View Setup
    • FAQ
    • Pre-Sale
    • Advanced
    • Common Problems
    • Customizing Your Views
    • Edit Entry
    • Entry Approval
    • Filter and Sort Results
    • Gravity Forms
    • Merge Tags
    • Roles and Capabilities
    • Search
    • Shortcodes
    • View Settings
    • WordPress Posts

    General Help

    • Account, Invoices, and Billing
    • License Related
    • Plugins and Settings
    • Contact
    • Docs Home
    • Gravity Forms Add-Ons

      • GravityView
      • GravityActions
      • GravityBoard
      • GravityCalendar
      • GravityCharts
      • GravityEdit
      • GravityExport
      • GravityImport
      • GravityMath
      • GravityMigrate
      • GravityRevisions
      • GF Widget for Elementor
      • GF Dynamic Lookup
      • GF Entry Tags
      • GF Event Field
      • GF Zero Spam
      • GravityExport Lite
    • GravityView

      • Getting Started
      • View Setup
      • FAQ
      • Pre-Sale
      • Advanced
      • Common Problems
      • Customizing Your Views
      • Edit Entry
      • Entry Approval
      • Filter and Sort Results
      • Gravity Forms
      • Merge Tags
      • Roles and Capabilities
      • Search
      • Shortcodes
      • View Settings
      • WordPress Posts
    • General Help

      • Account, Invoices, and Billing
      • License Related
      • Plugins and Settings
    • Contact

    GravityView Pro

      • (Advanced) What changed from 1.x to 2.0?
      • Field Conditional Logic
      • Field Conditional Logic doesn’t hide empty fields
      • Filtered results are not showing
      • Filtering a View using the Assignee field from Gravity Flow
      • Filtering by entry approval status
      • Filtering by the week of the year
      • Filtering by user role
      • Getting Started With the Advanced Filtering Extension
      • How to show only entries created by the currently logged-in user
      • How to show only entries from the current day, week, month, or year
      • I can’t type in a relative date
      • The :disabled_admin Merge Tag Modifier
      • Using Advanced Filtering with Multiple Forms
      • Why can’t I see the Fields dropdown?
      • Change the search parameter from “letter” to something else
      • Configuring the A-Z Filters Widget
      • The “Use this field to filter entries” setting
      • Dashboard Views: Deciding which fields to display
      • Dashboard Views: Display the View title
      • Dashboard Views: How to modify the menu icon
      • Dashboard Views: The included CSS Frameworks
      • Getting started with Dashboard Views
      • Buttons (DataTables Setting)
      • Changing the style of the export buttons in DataTables
      • Customizing DataTables Options in GravityView
      • DataTables Data Processing Mode (AJAX or Preloaded)
      • DataTables Excel Export – How to display URLs
      • DataTables Excel Export – How to remove HTML tags from the export
      • DataTables Field Filters
      • DataTables PDF Export – How to display images
      • DataTables PDF Export – How to display links
      • DataTables PDF Export – How to include a company logo
      • DataTables Print – How to display images and URLs
      • DataTables Setting: Save Table State
      • DataTables Views can’t be displayed using echo do_shortcode functions
      • DataTables: is it possible to exclude fields from printing?
      • Enable Auto-Update (DataTables Setting)
      • Getting Started With the DataTables Layout
      • Grouping rows by common field values
      • How to customize the “Loading data” text
      • How to customize the “No matching records found” text
      • How to customize the CSV field separator?
      • How to customize the Excel export file name
      • How to disable the “Loading data” message
      • How to disable the DataTables search box
      • How to Enable the Responsive Tables mode
      • How to translate the DataTables script
      • Is there a way to style the PDF on DataTables?
      • Known limitations of the Responsive Tables mode of DataTables
      • Multi-sorting columns in DataTables
      • My column widths aren’t being respected when using Responsive Tables
      • My DataTables View is not sorting properly
      • Removing the striped background from DataTables
      • Responsive (DataTables Setting)
      • Scroller (DataTables Setting)
      • The text inside a column is going out of the screen
      • Why doesn’t my DataTables sort correctly?
      • DIY Layout: Remove the “Go back” link
      • DIY Version 2.2 changes to HTML output
      • Getting Started With the DIY Layout
      • How do I add additional container tag default options?
      • Showing Before and After Content even when field is empty
      • Getting started with the Advanced Elementor Widget for GravityView
      • Understanding the “Show Debug Output” option
      • Getting Started With the Featured Entries Extension
      • How do I change the design of a Featured entry?
      • How to always display featured entries, regardless of search results
      • How to feature an entry using PHP
      • How to visually highlight featured entries in the Recent Entries widget
      • Show only Featured Entries in the Recent Entries widget
      • Allowing users to delete entries when using a Magic Link
      • Fields not appearing in Edit Entry when using Magic Links?
      • Getting Started with Magic Links
      • Magic Links Filters
      • Preserving Magic Links parameters on password-protected Views
      • The {gv_magic_links} Merge Tag
      • About custom map icons or markers
      • About GravityView Maps geocoding
      • Adding your Google Maps API Key into Divi
      • Adding your Google Maps API Key into Premium Addons for Elementor
      • Adding your Google Maps API Key into Ultimate Addons for Elementor
      • Associating a custom map pin icon (marker) with a field value
      • Can I use Maps to autocomplete addresses on my form?
      • Configuring info boxes in GravityView Maps
      • Enabling autocomplete for the Gravity Forms Address field
      • Enabling the REST API access
      • Error: Google Maps API warning: NoApiKeys
      • Error: This page can’t load Google Maps correctly
      • Filter the address field: gravityview/maps/marker/address
      • Fixing a conflict with UberMenu plugin
      • Getting Started With the Maps Layout
      • Google Maps Javascript API Error “RefererNotAllowedMapError”
      • Granting Google Cloud Access to Support
      • How can I make the marker link to open in a new tab?
      • How can I pull the address from a field type that is not Address?
      • How do I display only the Map? I don’t want to display the entries under the Map.
      • How to enable and configure map marker clustering
      • How to enable radius search
      • How to hide map elements using CSS
      • How to override geocoding coordinates
      • How to show markers from multiple address fields on a map
      • Is it possible to style the map?
      • My map is gray and there are no entry markers
      • Radius Search: Request Location
      • Set Up Google Maps in GravityView Maps
      • Support for OpenStreetMap or other map providers
      • Using a latitude and longitude fields to position the map markers
      • What are “Search as map moves” and “Redo search in map”?
      • Why aren’t some of my entries showing up on the map?
      • Getting Started With Multiple Forms
      • How to connect two forms using the Nested Forms field with the Multiple Forms
      • I don’t see the option to join multiple forms
      • Known limitations of Multiple Forms
      • Multiple Forms: How the “Strict Entry Match” setting works
      • Multiple Forms: Searching entries
      • Multiple Forms: Unions are not supported
      • Using Advanced Filtering with Multiple Forms
      • Why I’m seeing duplicated records on my View?
      • [Advanced] How to modify Ratings & Reviews entry comment titles
      • Creating a review/voting system by embedding a form into a single entry (short)
      • How to change the description of the Star Rating titles on hover
      • How to disable email notifications for reviews
      • How to Setup the Ratings & Reviews Extension
      • Issue: GravityView Single Entry page only shows โ€œLeave a Reply”
      • Ratings & Reviews Anonymous Reviews
      • Ratings & Reviews Hooks
      • Ratings & Reviews Merge Tags
      • Getting Started With the Social Sharing & SEO Extension
      • How to fix Open Graph meta tags for single entry pages when using the WordPress SEO plugin
      • Setting up SEO for Views with Yoast SEO
      • Setting up sharing buttons with JetPack
      • Getting started with PDF for GravityView
    • Home
    • Docs
    • GravityView Pro
    • Advanced Filter
    • Filtering by the week of the year

    Filtering by the week of the year

    Estimated reading: 3 minutes

    Updated on April 24, 2026

    Filter your GravityView entries to show only records from specific weeks of the year using the GravityView Advanced Filtering Extension and the {today} merge tag.

    Overview #

    This guide explains how to set up automatic week-based filtering in GravityView, allowing your View to automatically display entries that match the current week number of the year.

    Use case #

    This filtering method is particularly useful for:

    • Assignment tracking systems where tasks are organized by weekly periods
    • Schedule management where activities are planned on a weekly basis
    • Reporting dashboards that need to display current week’s data automatically
    • Team calendars where users need to see their weekly assignments

    How week numbering works #

    The week filtering system uses the ISO-8601 week numbering standard:

    • Weeks are numbered from 1 to 52 (or 53 in some years)
    • Week 1 is the first week with a Thursday in the new year
    • Weeks start on Monday and end on Sunday
    • The week number represents the week’s position in the calendar year

    For example:

    • January 1-7 falls on Week 1
    • July 1-7 typically falls in Week 26 or 27
    • December 25-31 typically falls in Week 52

    Requirements #

    To implement week-based filtering, you need:

    1. Gravity Forms plugin installed and activated
    2. GravityView plugin installed and activated
    3. GravityView Advanced Filtering Extension

    Step-by-step setup #

    Step 1: Configure your form’s Week Number field

    Your Gravity Forms form needs to have a Number field configured for week numbers:

    1. Edit your form in Gravity Forms.
    2. Add a Number field labeled “Week Number” (or similar).
    3. Configure the Number field settings:
      • Check the “Enable Calculation” checkbox.
        • Leave Formula empty.
        • Set “Rounding” to 0 (only shown when Enable Calculation is checked.
      • In the Range setting, set “Min” to 1 and “Max” to 53.
      • Under “Rules”, Consider making this field required if week assignment is mandatory.
      • Optionally, add Description: “Enter the week number (1-52) for this assignment.”
      • If you want the current week to be pre-populated, scroll down to the “Advanced” section and click to expand it.
      • Set Default Value to {today:format:W}, which uses the {today} merge tag.

    Then save your form.

    Form settings for week number input, allowing entry 1-52, with calculation enabled and no duplicate rule

    The Advanced tab:

    Admin field setup with default value for current week number
    Using the {today} merge tag to prepopulate the current week number

    Tip:ย You can also pre-populate this field with the current week using dynamic population.

    Step 2: Enable Advanced Filtering

    Configure the GravityView Advanced Filtering Extension to filter entries automatically:

    1. Install and activate Advanced Filtering by following this guide.
    2. In the View, scroll to the Settings metabox
    3. Click the Filter & Sort tab
    4. Under Advanced Filter, click Add Condition
    5. Add a new filter condition:
      • Field: Select the form’s Week Number field
      • Operator: is
      • Value: {today:format:W}
    6. Save the View

    When configured, the filter should look like this:

    Advanced filter settings: Filter entries by the current week number using the condition "Week Number is {today:format:W}"

    What’s the deal with the {today:format:W} merge tag? Let’s take a closer look.

    Dynamic week filtering with merge tags #

    Automatic current week filtering

    To automatically show only the current week’s entries, use theย {today} ย merge tagย with theย :format ย modifier:

    {today:format:W}

    This merge tag:

    • Retrieves today’s date
    • Formats it using PHP’sย W ย format specifier
    • Returns the current week number (1-52)

    Note:ย Learn more about theย {today} ย merge tagย and its formatting options in the Gravity Forms documentation. For a complete reference of date format characters, see theย WordPress date and time formatting guide.

    To implement:

    1. In the Advanced Filtering settings, set the filter value to:ย {today:format:W}
    2. The View automatically displays only entries matching the current week.
    3. The filter updates automatically as weeks change.

    Example scenario

    On January 1st (Week 1):

    • Filter value:ย {today:format:W} ย resolves toย 1
    • Only entries with Week Number = 1 are displayed.

    On July 15th (Week 29):

    • Filter value:ย {today:format:W} ย resolves toย 29
    • Only entries with Week Number = 29 are displayed.

    Advanced configuration options #

    Combine with other filters

    You can combine week filtering with other criteria:

    Week Number is {today:format:W}
    AND
    Status is "Active"
    AND
    Assigned To is {user:ID}

    Create week range filters

    For viewing multiple weeks:

    Week Number is greater than or equal to {today:format:W}
    AND
    Week Number is less than or equal to {today:format:W|+2}

    This shows the current week plus the next two weeks.

    Previous/next week views

    Create links to navigate between weeks:

    • Previous week:ย ?filter_week={today:format:W|-1}
    • Current week:ย ?filter_week={today:format:W}
    • Next week:ย ?filter_week={today:format:W|+1}

    Custom week display

    To display the week number in your View:

    1. Add a Custom Content field.
    2. Use merge tags:ย Week {Week Number:1} of {today:format:Y}
    3. Result: “Week 15 of 2024”

    Troubleshooting #

    Common issues and solutions

    Entries not filtering correctly:

    • Verify the Week Number field is a Number field type in your form.
    • Ensure the field contains numeric values (1-52 or 1-53).
    • Check that Advanced Filtering is enabled in your View.
    • Confirm the merge tagย {today:format:W} ย is formatted correctly.

    Wrong week number displayed:

    • Confirm your server’s timezone settings match your intended timezone.
    • Check PHP date configuration on your server.
    • Verify the week numbering system matches ISO-8601 standards.

    No entries showing when filter is applied:

    • Check if any entries exist for the current week number.
    • Verify the Week Number field has been properly populated in your form submissions.
    • Test with a specific week number instead of the merge tag to isolate the issue.
    Still stuck? How can we help?

    How can we help?

    "*" indicates required fields

    This field is for validation purposes and should be left unchanged.
    Replies will go to this email.
    How can we help?*
    My pre-sale question is related to...*
    My WordPress skills are....*
    My Gravity Forms skills are...*
    You will be shown articles from our documentation.
    Vous pouvez nous รฉcrire dans votre langue maternelle si cโ€™est plus facile pour vousโ€”nous nous occuperons de la traduction!
    Puedes escribirnos en tu idioma nativo si te resulta mรกs fรกcil; ยกnosotros nos encargamos de la traducciรณn!
    Sie kรถnnen uns in Ihrer Muttersprache schreiben, wenn das fรผr Sie einfacher ist โ€“ wir kรผmmern uns um die รœbersetzung!
    U kunt ons in uw moedertaal schrijven als dat gemakkelijker voor u is โ€” wij zorgen voor de vertaling!
    Du kan skrive til oss pรฅ ditt morsmรฅl hvis det er enklere for deg โ€” vi tar oss av oversettelsen!
    Du kan skriva till oss pรฅ ditt modersmรฅl om det รคr lรคttare fรถr dig โ€” vi tar hand om รถversรคttningen!
    Vocรช pode nos escrever em seu idioma nativo se for mais fรกcil para vocรช โ€” nรณs cuidaremos da traduรงรฃo!
    Puoi scriverci nella tua lingua madre se ti รจ piรน facile โ€” penseremo noi alla traduzione!
    Please provide as much detail as you're able; this helps us provide you with faster support.
    Drop files here or
    Accepted file types: jpg, jpeg, gif, png, tiff, pdf, bmp, zip, json, csv, xls, xlsx, Max. file size: 256 MB.
      Stay informed?

      Was this page helpful?

      Table Of Contents
      • Overview
      • Use case
      • How week numbering works
      • Requirements
      • Step-by-step setup
      • Dynamic week filtering with merge tags
      • Advanced configuration options
      • Troubleshooting
      GravityKit
      • How to Build It
      • Pricing
      • Products
      • Our Team
      • Our Values
      • Work With Us
      • Coupons
      Support
      • Support
      • Contact
      • Documentation
      • Scope of Support
      • Brand Guidelines
      • Privacy Policy
      • Terms of Service (โ€œTermsโ€)
      About Us
      • GravityKit on Mastodon
      • GravityKit on Twitter
      • GravityKit Training Courses
      • GravityKit on Facebook
      • Join our Facebook Group
      • Facebook
      • Twitter
      Get notified of updates.

      Weโ€™re constantly improving GravityKit. Fill out your email below and weโ€™ll notify you anytime major updates drop.

      GravityKit is a Gravity Forms Certified Developer.

      Copyright ยฉ 2026, Katz Web Services, Inc.

      GravityKit and GravityView are registered trademarks of Katz Web Services, Inc.