Pages are posts, you just need to change the post_type
to page
:
$args_automobile_just_launched_bike = array(
'posts_per_page' => 3,
'post_type' => 'page',
'order' => 'DESC',
'meta_query' => array(
array(
'key' => 'wpcf-new-launch-bikes',
'value' => '1',
),
),
);
Related Posts:
- How to enable custom fields for pages (if not a bad practice)?
- How to add add_meta_box to specific Page Template?
- Having different sidebar content for MANY pages?
- Custom Page Template [closed]
- Calling Specific Pages with wp query Part II
- Loop through two different sets of custom fields
- Add input field to ‘Pages > Edit Page’ through functions.php
- Calling custom fields for pages (not posts)
- How to Display pages with a Custom Fields in one page
- Advanced Custom Fields dynamic update_field
- get_post_meta() retrieves meta from a specific post on pages, not the page currently viewed
- How can I use custom properties to set different background on different pages?
- Display a different image for each page with editor
- Interrogate a page within a loop to check template type or custom meta data (Pages vs Posts)
- Display the output from Custom User Fields from a WordPress user profile on a WordPress Custom Page
- Load one page with parent and child pages
- Page template is missing fields or is invalid when I updating the template
- Why is wp_list_pages altering $post->ID of the page?
- Custom Field select list is truncated
- How to use page metadata while using wp_list_pages()?
- Getting content from custom fields of different pages on a single page
- Decouple page name from page title
- How do delete a meta key?
- Is it safe to store a user setting you don’t want the user to ever modify as a user option?
- Add custom fields to search
- extend Meta Box / Document Panel
- Add multiple images to a page sidebar
- getEntityRecord without knowing the post type
- Add custom field to image editor
- Metabox nonce PHP notice
- How to break meta values into different items and avoid duplicates?
- ajax delete value from custom field array
- How can I sort get_users() by any value (last_name, user defined fields and more)
- Custom field for default gallery
- After moving my site from a dev subdomain, to root, all my custom meta data is gone
- How can I query on the year part of a complete date in a custom field?
- WordPress Custom Field Should be Unique. Is it possible?
- all tincymce’s switch when updating page after changing from html to text in custom metabox
- Author Page Custom Query WHERE author OR [post meta value] OR [post meta value]
- How to display Meta Field Value?
- What is the cleanest way to extract custom variables from a post
- Add source URL from Feed WordPress (Syndication) plugin to a custom field in post editor
- List custom taxonomy terms from custom field
- How do I create a column in Users list and display user data from custom registration field
- Better Method for Multiple Meta Boxes
- user Profile meta value as custom field
- Remove Body Classes
- Use WPbakery for own custom field [closed]
- Product Custom Fields with HTML and JS
- Add new image block, set default class name and update it using Javascript
- Client PDF Upload (Catalogue) – Automatically update link to PDF
- Change the sort order for posts to include custom field
- Button inside Custom Meta Box triggering the Update Button
- How to load an assets based on custom field value?
- Custom Field 101
- When creating a metabox do you have to create DB fields for the data?
- Best filter to use for modifying custom fields on a post?
- Changed PHP handler to DSO – weird custom fields problem [closed]
- How do I query the title (or handle?) of post meta fieldset (created with Simple Fields Plugin)
- Is it preferable to use custom code to create metaboxes instead of plugins (such as ACF) and if so why? [closed]
- Function that replaces the image in the absence of the post meta
- Is there a way to set default custom fields when creating a new post?
- Add custom column for custom field
- ul list with only as many li’s as filled custom fields
- Is there a way to dump all registered sidebar/widget?
- How to hide post meta
- ACF Plugin How to make the customer add more fields in the post?
- How to sort by custom field value?
- Meta Box Plugin Cloned Fields – Multiple Foreach values
- get_post_meta returns 0
- Custom field bug in WordPress 3.2
- How to save multiple values with same meta_key, each value linked to another tag id
- Let any visitors delete a post if they know Id nr & password?
- update a custom field with the value of another existing custom field
- Custom post types & Pages hierarchy – Error 404
- Post meta data not showing in frontend, until hitting ‘update’ button
- a lot of custom fields
- Hide custom fields by user’s role
- Ordering posts by custom fields (Date)
- update meta field value after
- PHP and Shortcode Combination
- Retrieving Advanced Custom Field within Shortcode Function [closed]
- Custom fields and auto save
- Save values generated via API as custom meta fields
- Get custom fields when hover link of post
- WP Query multiple select form – meta_query help
- update_post_meta not working in action hook
- Custom field in a shortcode?
- Group pages by custom field values
- Exclude empty fields from custom field calculation (Average)
- How to create Parent-Child relation for custom fields?
- How to check if custom field exists in this widget query
- display loop only if a post meta data exist
- How do i output images from URL’s added to the same custom field key
- Add Custom field under the post title [closed]
- Check if a field is capitalized?
- Filter Query Post by Custom Fields(by date)
- Can’t sort custom column on user.php by number / meta_value_num?
- Need to call this php function inside a modal window from text widget
- Conditional display based on ACF checkbox