Hi J.D., thank you SO much for replying! This is perfect – I realized after the fact that I actually need to change the content of the iframe based on the day of the month rather than week. Here’s my code:
//define paths as desired URL slug
let paths = "/meal";
//on page load, add the url slug and day of the month to the src field of the embed frame
$w.onReady(() => {
$w('#iframe').src = 'urlhere' + paths + [new Date().getUTCDate()]; //adds "meal" + day of month to end of url
})
A quick question for you – is this the proper usage of getUTCDate? I want to make sure nothing breaks due to daylight savings etc.