<?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()
- Including all post id’s of a custom post type into an array
- Multiple single templates?
- Understanding Post Formats/Custom Post types Etc
- Custom Field values not Showing in Edit Page of Custom Post Type
- Custom post type causes php-error in php version 5.2.17
- How can I add a custom field to an existing custom post type?
- Add a custom meta box for client to order CPT posts how they want
- Custom posts type for individual pages?
- Custom post type’s extra fields – how to handle?
- Number of posts in the archive
- custom post data – how to
- Query of custom post types only shows first post
- Custom query for custom post_type
- Adding custom field values to wp_list_pages
- Query multiple taxonomies with pre get posts
- How to query 2 custom post types that need to share a slug?
- Send a conditional email notification when a custom field value changes in Post Type
- Trying to get custom post of a custom taxonomy
- Enable Custom Fields For Custom Post Type When CPT Created Using Plugin
- How can I group posts by months and years?
- Create custom post with meta field with AJAX and the WordPress REST API
- Specifying meta field’s column type in Database using add_post_meta
- PHP question: how to combine syntax?
- Trying to Create a PHP Variable for post_type that can be referenced Site Wide
- Add first letter of titles to array, then compare arrays
- How to get a custom type post data when it has a connection with another custom type post?
- Get Post Terms of Current Post (selected taxonomy term) – How to get only the taxonomy value and not “Array ( [0] => taxonomy term )” in the frontend?
- Add post meta programmatically to attachment
- Loop increase number
- custom post for slider