-
Let's say that I have a blog with 10 pages. Headless CMS with WordPress and all pages are statically generated using Now when I delete a post in WordPress, that page on the Front-end is not deleted. Is it possible for a static page to be removed when a blog post on WordPress is deleted? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
I just came across this myself. I originally assumed that using Edit: |
Beta Was this translation helpful? Give feedback.
-
@M1ck0 have you found a solution? |
Beta Was this translation helpful? Give feedback.
I just came across this myself. I originally assumed that using
revalidate
would causegetStaticProps
to refetch data and regenerate a given page periodically, but I'm not seeing pages even update even though I'm settingrevalidate
on every page'sgetStaticProps
. Some guidance would be appreciatedEdit:
My issue was that
revalidate
needed to be an integer, and was being entered as a string via the environment.For static pages on wildcard pages like
[slug].js
, iffallback
is set to true ingetStaticPaths
I found that a page that exists is deleted when the WordPress page is deleted.