You’re not being very specific so it’s hard to give you any help. But if you would like to output both pages and posts in the same loop you need to customize your query so that it includes both posts and pages. Learn about http://codex.wordpress.org/Class_Reference/WP_Query.
Or if you want the posts to be outputted at one place and the pages in another place, http://codex.wordpress.org/Function_Reference/get_pages or maybe http://codex.wordpress.org/Function_Reference/wp_list_pages.
Update
To mix posts and pages in one loop you need to query both post types. Try adding query_posts like this:
<?php query_posts('post_type=post,page'); ?>
<?php while (have_posts()) : the_post(); ?>
<?php if ( get_post_meta($post->ID, 'highlights', true)) { ?>
<?php the_title() . "<br>"; ?>
<?php } ?>
<?php endwhile; ?>
Related Posts:
- Custom Field in Featured image for A particular post
- Populating a page with content from post custom fields
- Hooking into the post editing screen for an existing page only
- Output Post with ACF Fields into other Post
- I don’t want the complete article to show on homepage
- Custom Fields – How to get the list of a specific active widget each time it rendered
- How to show only homepage in google results instead of privacy, contact pages
- 404 error on every post and page other than home
- Using Post ID and Page ID in same function
- How to have more post in a page than in your home page
- Get post ID from a link
- Loop doesn’t exclude the specified category in home page
- is_page Funtion for Posts ?
- is_page() and is_page_template() not being differentiated
- Create a list of posts with topic headdings
- Add field to user meta table in database when link is clicked
- Hide custom metabox value from custom fields
- Admin – no Featured image choice in create new/page|post
- How to detect when admin user is on the All Posts page?
- static landing page leading to author specific pages w/ “live” content
- Get post meta retrieving wrong value
- Single Post in Tab/Slider
- Getting Duplicate Posts on Home Page with Widget Added Between Posts
- Total number of posts in query (category/tag/author/search results/main page…)
- Custom Permalink Structure for Pages & Posts
- Getting a “404 Not Found” error when “Preview Changes” is clicked
- Why won’t pagination work?
- WordPress Query Posts From Category Post on Static Page
- How to create a “latest news” page showing a list of posts from blog category
- Edit multiple custom post types while saving a new or edited post
- How do you search for a post or page with a certain url on the WordPress admin panel?
- How to add some html formated text to every new post in WordPress
- if in category but only with post meta
- Intercept page request and add value to it
- WordPress 302 Redirect to Random Product/Post/Page
- How to create a page that shows the last 10 posts?
- $_GET parametters not working in an specific template
- Saving Post Data in Another Database
- New Posts and Pages Won’t Save
- My Custom Post Type Still Using index.php
- get_children returns older images
- Posts and Pages: 404 Page not found
- Add hero image to home page (blog format) via the dashboard
- Custom home page with full post for first one only
- Add two custom fields as a default to the “new post” page.
- the_content() Not Grabbing All Content
- Display Featured Posts Grid on Static Page (Gazette)
- After ajax image is outside the “ tag
- Detecting current page from class method
- Edit custom fields in posts list
- Add multiple meta keys to a post at once
- Having pages after specifying post_type post
- Unabled to Change Permalinks – Even Using the “Edit” (Resets to Original Permalink on “Update”)
- List all posts, pages and custom post types in admin
- WP_Query custom field pass the post id
- Inserting an example of the last 3 post on to the homepage
- Change website directory safely to add a static page on startup
- Make ‘blog’ page show content as well as posts underneath it
- Post/page title to permalink transformation – what is behind the scenes?
- Change Author Name to Sitename on Frontend
- Would a “hub” page work better as a page or a post?
- Display on page every post in blog WITH comments
- Are post, page and category IDs unique to each other?
- Showing recent post of category in page
- HTML Inside of Shortcode Breaks Shortcode Output
- If custom field is empty, use one from a previous post
- Post is in descendant category not working in home.php
- saving/reading custom field value does not work – no value gets POSTed
- links to posts not working on homepage
- Setting limit to posts or page creation
- Create a frontpage.php and static page template
- Using Posts Like a Page
- Pagination for normal (standard) posts on a page with a custom loop?
- Changing wp_link_pages() to “Next Page” and “Previous Page” buttons?
- Why my meta boxes won’t show in front post page?
- how many visitor open this post? [closed]
- posts going to 2 pages/categories only show up in 1
- Have posts included on a page that share same category
- Preview page/post revisions without overwriting current content
- Adding external field to my post form (admin side) and to post show (frontend side)
- Link from Post to Another Post Via Clicking on Words within Original Post
- What’s a theme that properly handles previews of different types of posts?
- Page of posts made to look like homepage
- post/page content
- Link to older links
- How to link post titles on page A to its posts on page B?
- WordPress Architecture as a CMS – Posts & Pages
- Conditionally exclude post from specific category on home page sidebar?
- Is it to possible to insert a page in the post depending on the category ofthe post
- Organization of time insensitive content
- How To Use Custom Fields With .mp3 Links
- Direct some posts to only appear on a specific page
- Adding if statement into the_content()
- How can I add a page that shows posts from a single category?
- How to show next/prev link, when it’s not active?
- how can display a post on home screen without images
- Archieve page, Advertisement Every 3 Posts
- Display content between two dates?
- Prevent 404 of Author pages without posts
- Prevent duplicate pages from being added