I worked it out, when in the admin area of a page/post you can find the post ID in the browser URL:
http://localhost/newsite/wp-admin/post.php?post=1807&action=edit
So the previous dev simply uses this page as a ‘parent’, and refers to it as they set $id = get_post(1807);
Now the query find posts/pages that a ‘children’ of this page.
Related Posts:
- Show content from multiple pages (not posts) on home page
- Get post first paragraph without html tag [duplicate]
- Why does get_post() return the latest post inside template_include before doing anything
- How to get ‘post_content’ without stripping tags?
- get_post() vs global $post or $GLOBAL[‘post’]
- Elegant way to include only published posts with get_objects_in_term()?
- Difference between the_content() and get_post()?
- What is an alternative to get_page_by_title()?
- How to get the image EXIF date/time and use it for the WP post date/time
- Disable block from editor based on post type
- WordPress function to get term or post object by id
- Using apply_filters(‘the_content’, $custom_query->post_content) alters output
- Cannot get grandparent object
- Custom Fields with get_post()
- How to pass arguments to add_action() or retrieve return value of called function?
- Which method is faster to get a single post?
- Loading post template that contains a nested loop with ajax
- Obtain page data and use regular loop
- Formatting get_post content doesn’t allow JS content to function properly
- Get current post data into array?
- using query_posts to pull posts out of a category in a while loop. Getting odd echo
- Get post format and use it as a CSS class in different spans
- How to limit the characters shown on the page – get_content
- get_post() is not returning correct value
- WP overwrites my setup_postdata() setup
- get posts by tag to showing in a widget
- make get_post work in the loop
- Retrieving custom field value with get_post?
- How to get post meta in functions?
- Get post content intro text on category.php?
- Is it normal that get_post() gets run 300 times and the content of those posts aren’t visible?
- Count products with custom metadata field in an order
- Get specific Blocks from Post
- display condition based on post term and status
- Fetch ids of live posts only (not posts with other statuses) and change status with a button in candidate dashboard
- get_post() with filters applied
- Can you add a shortcode to a custom post type that gets the post_title, post_content, etc. and then passes that to a plugin function?
- How to get custom post type with dynamic ID
- Custom field in PHP file
- Loop (for search results) returning right posts, but wrong post type
- Get posts under custom taxonomy and custom post type
- (Frontend AJAX) get post data WITH image thumbnail?
- Why does get_post() not return anything?
- How to call get_post()?
- Best way to check if a post with specific meta exists
- Function to get the name in database table from the comma separated string
- Modifying WordPress XML-RPC Built-Ins
- getpost content with all formatting for admin pages
- Get the excerpt by page ID from another blog in a wordpress multisite?
- Get post by Category in custom template