<?php
$thispostID = $post->ID
;?><?php
query_posts('post_type=services'); while (have_posts()) : the_post();
Needs to get the post id of the master post before querying the services.
Change all references to $post->ID
to $thispostID
Related Posts:
- Conditional to modify query results
- Query custom post type by custom field
- Search that will look in custom field, post title and post content
- Using ‘strtotime’ function to convert a custom-meta-box to a date-stamp
- Comparing timestamps in meta query doesn’t work
- Display two post types ordered by two custom fields
- Inserting data into `post meta` table?
- Having trouble with custom date field for CPT query (WordPress)
- Sort posts based on multiple custom fields
- WP_Query search posts by custom post type and custom taxonomy
- Create a random unique 6 digit number as custom field for custom post type
- query posts and custom post type with meta key
- Using several custom fields as custom post title
- Custom query to filter posts that have current post as a taxonomy [closed]
- Replace text in post from cvs
- Query & Order posts by custom fields
- Querying Two Custom Post Types with OR Not Working
- get_post_meta not working on publishing
- creat filter with wp_query
- Using custom field content as expression in IF statement [closed]
- First custom field value (out of several) displayed twice after query
- Displaying custom field according to date
- Add additional field to custom post_type
- How to conditionally add Custom Post Type to Front Page
- finding and using post type fields in WordPress
- Get data from PHP to JavaScript to set position of each post on front page
- Display a post from custom post type only if all the selected taxonomies and custom field value matches the record
- Custom Query: If One Post Object Field Value Is The Same As Another
- Querying a custom post type, but not show duplicates
- How do I get the index for a custom post?
- Filtering custom posts by custom fields (ACF) [closed]
- How do I show my containing my custom field ONLY if there is a set value on that custom field? [closed]
- CPT Repeatable Fields + Undefined Index
- Let users upload image(s) to the post from front end
- Need help with simple “if statement” checks to output particlular CPT data depending on what client uploads/fills out
- How can I sort the order of multiple custom field values in a custom post type?
- How do I ensure that post_type and Taxonomy use the same slug?
- Create an user checklist system for a course plateform using ACF Pro and ACF Extended
- Custom fields array to display it monthly
- WP Query from two Custom Post type fields as statement
- Alike Shortcode using in Custom Shortcode
- Query custom post type that has a serialized relational advanced custom field value
- Check that a slug is present in the get_terms request
- Using OR relation in meta_query to check for a value before sorting by another
- Sort custom post column by generated value?
- when looping through custom post data not appearing
- Meta query and compare “!=” not working as expected
- Custom post type order by post_title
- How do I query with multiple custom fields orderby in same column?
- PHP Notice: Unidentified index
- How do I display specific custom posts, and how do I edit a post’s singular page?
- WordPress loop add heading before first of type
- How to make a shortcode for my WP_Query Loop? [duplicate]
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- Show first posts with custom field not empty and order all by title
- Can’t pick up a field created with Advanced Custom Fields
- Get month and day from a Date Picker custom field
- Function not pulling image or text from custom post type
- Show Custom Post Type taxonomy term that matches custom field
- Order by custom field attribute
- Filter CPT based on meta box value using Flexible Posts widget?
- Select Menu for Custom post Type does not save
- How to grab data (titles, thumbnails and custom fields) from multiple posts to populate a new array efficiently?
- Code in custom widget queries all posts, when it should only query the current post
- Order custom post type is beign ignored
- Filter Custom post type by another Custom post type
- How do I filter a custom post type loop by a field?
- Get custom post fields and display them
- Get Posts ordered by a date custom meta field
- Send email on creation of custom post type and use get_post_meta()
- Custom Post Type Data in Sidebar widgets?
- Many to Many Relationship between Two Custom Post Types
- Creating Photo Gallery System with Custom Post Type
- Set post title from two meta fields
- Custom Taxonomy order by Custom Field
- Stopping WordPress from Auto Generating Image Files for Sizes
- Get Custom Field Values by Another Custom Field in WordPress
- is_page_template not working as expected
- Keep display metadata value on backend – Custom Metabox
- Grouping metadatas into one
- Custom fields (wp_post_meta) vs Custom Table for large amount of data
- How to Output which matched meta_keys were found from custom_type_posts?
- Query based on custom fields start and end date
- DIsplaying URL of custom field in last post of certain taxonomy && post type
- Query Custom Post Types with checkboxes
- How do I create a new post upon registration with the users first and last name as title
- How do I replace the post title with a custom field?
- Custom Taxonomy dont save in a frontend form for post a custom post
- Update custom field value
- Change Dropdown jQuery to show/hide but with default place holder that shows all
- How to access repeater field of a custom field?
- Do not show child pages within a file page
- Custom post types & Pages hierarchy – Error 404
- How to prepend text to custom field value A, but only if custom field value B matches a certain string?
- Repeatable custom meta select boxes
- Custom Post type as Taxonomy
- How to manage wordpress knowledge base/wiki/posts collections
- Display div based on Group metabox selection [closed]
- Just the First Metabox what saves the data!
- pre_get_posts causes Custom Posts appear under ‘Pages’ menu