Have a look at the Post & Page Parameters Section in the WP_Query
Documentation
For getting a Post by Post ID, you need to use this:
$my_query = new WP_Query('post_type=movie_reviews&p=244');
If you only need the content of one specific post, you can also do this:
$mypost = get_post(244);
echo apply_filters('the_content',$mypost->post_content);
In this case, you don’t need to worry about the loop or the global vars getting overwritten, removing your main loop.
Related Posts:
- What is the correct way to use WordPress functions outside WordPress files?
- What’s the best way to use the Featured Image for responsive web design?
- Hide php Notices in Dashboard
- How to correctly submit a search form and display the result in an independent page
- Shortcode to insert
- WordPress new user / forgot password emails are broken
- How to get year, month and hour in WordPress?
- What is the most efficient way to search users by their display name?
- Calling a method from functions.php on a click of a button
- How to change featured content to a different tag in WordPress Twenty Fourteen?
- Using Echo in ShortCode – Stuck
- Get used terms by an author as array of strings
- Two posts in same div – WP loop
- Compare two meta key values against each other inside the get_posts array?
- PHP Customization: Taxonomies and Queries, why? [closed]
- wp-admin/index.php gives a “500 Internal Server Error [closed]
- Get ID of child from child slug, while knowing parent ID
- Custom excerpt function re-factoring
- Limit get_pages to only show 5 items
- Is there a built in function to see if a URLis oEmbed Compatible?
- How do i use this jquery script on a wordpress site?
- How to get media objects
- How Display Posts on category
- How does this WordPress Plugin (Thrive Comments) apply their custom comment sort? [closed]
- Add custom url to featured image
- WP-PageNavi is showing the first page only
- Parent theme CSS overriding child CSS rules
- How to add date to navigation bar
- Filter Select results based on selection
- creating a second image attachment template?
- Using WP-API and SSE not authenticating user ID
- Output ACF repeater on frontend user’s profile page (created with Ultimate Member) [closed]
- Validate functions before inserting then into functions.php
- Why does wordpress only look at certain child theme pages, but not all of them?
- How to show only subcategories in parent category not parent category?
- Can you use a WordPress front-end only and have rest of pages as pure PHP
- Security: blocking direct access of php files
- Woocommerce Show Single Product on Homepage
- Woocommerce change prices for a certain country [closed]
- Adding PHP in the menu
- WordPress Environment: Dynamic Page using shortcode – how to change the page name for sharing
- Reason to add a name of the theme like (‘menu-1’ => __( ‘Primary’, ‘twentynineteen’ ),) in PHP?
- Display Data in Table from External Database in WP using Shortcodes
- persist a variable set in header.php all the way down to footer.php
- How can I spin up a new website for a registered user automatically?
- What is the alternative code to if (isset ($_POST) && !empty ($_POST) to avoid warnings?
- Remove item in Checkout
- How to Update post_modified of all wordpress post
- How to show every second user different types of banners?
- Woocommerce – get_items() returns empty array
- echo esc_url( get_permalink($post->ID) + complete the ID’s url
- How to add a rewrite endpoint to unattached media?
- WordPress cron is running with previously set time intervals and not the updated one
- Accessing an API with jQuery and AJAX
- Create special button on WP Tiny MCE Posts Editor for Shortcodes
- Good RSS Feed Parser to use on php file?
- Obfuscate links (for SEO purpose) [closed]
- Sortable custom product taxonomy terms via drag and drop
- get value from get_post_meta then reuse it in another get_post_meta
- comment_post (if comment is approved OR $comment_approved === 1) not working?
- How to remove Login from in my account page
- Header is not displaying on certain pages of wordpress theme [closed]
- Retrieve the whole widget sidebar and pass it inside an html
- Configure WordPress to Use Responsive Image Rendering
- Creating multiple tables with Plugin
- How to access specific product id on other pages/posts?
- How can i create a function tag in my plugin
- ACF – Get ID of relationship field in flexible content
- Why the responseText containing those two arrow signs at the beginning
- Return newly created category by code
- Meta Box clears saved field content
- Woocommerce remove menu item on myaccount dashboard
- Hook into all password resets in WordPress and get password before hashing?
- WordPress select query issue
- How to sort (orderby) a query done by a template function before the ‘foreach’ loop?
- woocommerce plugin bugs
- How can the searchform.php know if it’s used on a registered sidebar id ‘sidebar-1’ or ‘sidebar-2’?
- Getting most popular posts based on Facebook comments count
- WordPress get_post_meta issue
- Woocommerce Price Text
- Best way to define a database with product codes and back-end support?
- Display pages from specific page template
- If Elseif Query
- Querying multiple meta_keys in WordPress SQL query
- 3 domains, 1 wordpress install, redirecting and changing domains on live site
- How can I print out a single stylesheet or javascript link?
- Cannot Upload Custom Header Image into WordPress Dashboard
- wordpress featured image
- Generating a number based on post ID
- Add comma between variables [closed]
- Ajax Load More or View More functionality for woocommerce category layout by template overriding
- Disable Typed Parameters for JavaScript in PhpStorm? [closed]
- Properly process a custom WP REST API request (Authenticate, Authorize + Validate)?
- Losing Session ID and sessionStorage when navigating to other domains on Multisite
- Contact form with dynamic dropdown and filter
- Login user into magento using wordpress account
- save array of objects with update_option
- What is the best way to reset the site? Different fails while set up
- Use of undefined constant issue
- Themeco Looper Provider Query String for current user posts [closed]