Most likely plugin related in your case: BuddyPress seems to set the global post ID to 0 on its virtual pages, (see e.g. this ticket).
Related Posts:
- Get the content of a specific page (by ID)
- How to give paged links custom title?
- Show Default Editor on Blog Page ( Administration Panel )
- Create pages automatically if they don’t exist
- Can I display submenus in groups, using wp_list_pages?
- WP Page and Subdirectory with same name
- How to redirect on particular page in wordpress? [closed]
- Can I display the widget admin in the page admin?
- Internal Links to Pages in PHP?
- Restrict acceess of a page in backend
- Modify theme to get page excerpts on front page
- WordPress twenty eleven sidebar on Pages
- Debugging shortcode problems
- How to show updated edit on preview URL without clicking preview button
- How to make certain page templates visible to admin only
- Editing Pages that Have Already Been Published
- The entire content of my WordPress page has disappeared
- What is the proper way to get contents of a page?
- How to redirect a page to subdomain?
- Getting child content
- Slug is redirecting to 404
- Include content from one page to another
- Can I include Javascript/jQuery in a page?
- Adminbar Missing “Edit Page”
- conditional tags- how to use with shortcodes
- List all private pages user has access rights to read
- “next page” of parent in infinite loop
- Access the same page from multiple urls (wildcard)
- How to update the counter of private pages in the dashboard?
- Any Ideas for Including “More Tag” with get_pages($args)?
- Using in-build Visual Composer param types in custom param types
- Google Analytics tracking code on just one page?
- Layout Builder.
- Edit custom HTML page from WP admin dashboard
- get_pages() as per custom menu order
- Display child pages in sidebar of parent page in wordpress
- Get the Current Page Slug-Name
- How to use is_admin in page content?
- Adding a Calculator to a WordPress Page
- List all posts with the parent or grandparent of a page with a specified ID
- Why isn’t WordPress respecting my HTML?
- From a developer’s point of view what are the differences between pages and posts? [closed]
- block a page from logged out users and redirect to homepage
- Edit page shown after login in WordPress?
- Restrict the list of parent pages to only those which are created by current user
- Use content from one page in another template
- Is there a way to schedule changes to a page?
- How do I edit text displayed on my browser tab?
- Is it possible to change slugs’ default behaviour?
- List child pages within page template
- Option for pages order in backend
- Return subpages of an author if the parent page was published by an other author
- Page menu not showing in admin, new Page button missing in toolbar too
- Keep page hierarchy in wp_list_pages, even if on a child or grandchild
- Order by modified date working in POSTS but not PAGES
- append one page content into another
- WordPress Page doesn’t load the template selected
- on page creation few inline style properties gets removed
- way to make all pages with certain tags public?
- Page not appearing under its Parent
- Can I use Pages like a Wiki
- list child-pages as normal pages?
- return page name in url
- Next and Previous Page links based on ‘Order’ attribute
- Search anything from a Child and Sub-Pages of their Parent page
- Can i use 2 page content-forum & content-forum-slug on bbpress?
- register_rest_field only for specific page
- Update Pages ONLY from Stage to Live (not products)
- Attaching a file to a page without adding to media library?
- Change page width in refined magazine/mag and news theme
- How do you run code on a specific page without missing the init hook?
- Every change made by “Author” role is going to “pending review”
- Requiring a Visitor to Enter a Password Each Time They visit a Page
- if is_page() is not working with wp_redirect
- Display meta data attribute in user profile
- Assign Parent Page – Now 404 Error
- Create multiple custom HTML pages
- WordPress displays widgets out of whack
- Add homepage to the list of pages in the Footer Widget
- WordPress form submit to custom page template does not work
- How do I locate a third party page represented as a slug in my WordPress website?
- Customise the_title in admin area
- Add pagination to search.php page
- problem with loading pages
- How to turn post into pages and via versa?
- Blank white space where header was [closed]
- How do I get my page “About” to show up on my WordPress site?
- Featured Image not displaying in a page
- Set order acs and no paging for archive page
- Pageview all of sudden not working
- Childpage title + content on Parent Page
- Pulling posts tagged with similar title name
- Filter posts by author selected in page
- Temporary download page or restrict static download page based on how the user got to the page?
- List Parent page with sub pages
- simple category search form returns full text – but I need excerpts
- Order pages by date
- wordpress user profile page
- In WP, Google map error initMap is not a function [closed]
- WordPress is picking up links that don’t exist