I would solve this using the plugin Advanced Custom Fields.
1) create an ACF item with the following config
view larger
2) it will show a metabox when editing a Post, where you can select which Page the post should appear
3) in your page template, adapt this code to your needs
<?php
// START - THE LOOP
$the_ID = $post->ID;
$search_posts = get_posts(array(
'numberposts' => -1,
'post_type' => 'post',
'meta_key' => 'show_this_post_on_page'
));
if($search_posts) {
foreach($search_posts as $post_found) {
$key_value = get_post_meta($post_found->ID, 'show_this_post_on_page', true);
foreach($key_value as $key => $value) {
if($value==$the_ID) echo 'The post <strong>'.$post_found->post_title.'</strong> should appear in this page';
}
}
}
// END - THE LOOP
?>
Related Posts:
- Apply the_title() filter in post & page title, but not in menu title
- Is it possible to show a different WP menu when using password protected pages?
- Edit menu item title from edit page/post
- Disable most recent & view all (TABS) on nav-menu.php
- Using wp_list_pages() after calling query_posts()
- disable Tab post on nav-menus page (Admin)
- Go back to the exact post page number
- Parent menu item does not display posts when I add the sub-items
- Using WP page password protection as defacto login
- I lost the link to my posts in my menu bar
- Page and Posts loading as index page? Not loading the content
- Call posts of particular category in a page
- Add custom class to existing menu items from custom meta
- How to make posts appear under pages
- Adding a post to a page
- Get the Current Page Number
- Stop WP from creating “Sample Page” and “Hello World!” post
- How to display by default only published posts/pages in the admin area?
- Delete Associated Media Upon Page Deletion
- How to Check if a Page Exists by URL?
- Restore contents of deleted user
- Display posts by tag on page
- What is the difference between “post” and “page” in WordPress?
- posts page – different lengths of excerpt
- WordPress automatic and permanent page
- Adding Post Counts to Menu (Nav) Programmatically?
- Can I change a post to a page by changing it’s type?
- Add a custom option to a page in backend
- Creating new page with pre-defined parent page
- Populating a page with content from post custom fields
- What Defines What Category A Post Picks (if in multiple)
- When paginating a Page with the tag, how can the 2nd and subsequent page styles be customised?
- disable column on post and user list
- WP_Query do not load specifed number of post
- Can a page_id and a post_id be same?
- How can I display widget in a Page or Post?
- Differentiate between posts and pages in search results
- Getting a 404 error when clicking edit page
- Create dropdown list post
- Specifying # of Posts per page using inline post plugin (:
- Create posts under certain page
- Should I use posts or pages in this scenario?
- Switch to page template when using post permalink
- How to handle broken links created by permalink/slug changes?
- Get Page ID of blog homepage
- How to list recent posts in a wp nav menu?
- When open add new post or page WordPress add post with ID=0 continuously [closed]
- Hooking into the post editing screen for an existing page only
- How do I do a page break?
- Automatically create a new page daily with last three posts
- When changing pages to posts, how do you set up 301 redirects for the page URLs?
- User Selectable Delete of Pages
- How to get ID of the page included with get_page()?
- is_page() and is_page_template() not being differentiated
- static landing page leading to author specific pages w/ “live” content
- How can I list posts by author?
- How to create a “latest news” page showing a list of posts from blog category
- Automatically add images to a menu
- WordPress 302 Redirect to Random Product/Post/Page
- Having pages after specifying post_type post
- wp_list_categories() Exclude All Categories Except One
- Direct some posts to only appear on a specific page
- Adding if statement into the_content()
- Different post views for different category views
- Separate blog and reviews categories
- Creating a redirect option for current page url
- I want to add another search box on posts page in dashboard
- Is there a way to find all posts with Youtube video embedded?
- Menu does not foward to the linked posts
- I want to add the 10 most recent posts under a parent category on the main menu
- Change the size of the featured image for post?
- WordPress empty page! what is wrong with this code?
- WordPress: Develop multiple posts with different data
- How do I scope out why I have two “posts” menus in an admin?
- Blocked posts in network tab
- How to distinguish pages created by woocommerce?
- How do I customize the post page
- Clicking on a Post takes 10+ seconds for the server to respond, Pages will respond immediately
- Page with Category Returning 1
- Count posts for pagination
- Custom permalink for wordpress page / post
- How to add post under particular pages? Like website.com/page1/post1
- Keep highlight on menu item with post pages
- Posts in Page – How to customize the URL?
- Hiding menu on mobile only when viewing posts?
- Page not loading content – Body archive – page
- Display all posts/pages in a multiple selectbox
- Using Post ID and Page ID in same function
- Display Post by menu order
- How to display a paginated list of posts from one category on a page? [duplicate]
- Cant retrieve $_POST inside page, just header
- How do i put a dropdown list of ALL my post in the sidebar menu?
- Redirecting posts in WordPress to a specific page
- Wrap div-tag around posts in page
- When and how will php code in a user made WordPress page be executed?
- The page that displays Posts on homepage
- Post data returning null [closed]
- wordpress category Description not allowed tag
- Header and Footer options in pages and posts
- Blog posts are not appearing as subs of Blog Page