It appears the topic of a reply is stored in the _bbp_topic_id
meta field. Older versions stored this in the post_parent
field, but it seems this is deprecated? So you can add '&meta_key=_bbf_topic_id&meta_value=" . $post-ID
to your query to get only replies to this topic.
Related Posts:
- BBPress Search results in WordPress search
- How do I query a custom post type with a custom taxonomy?
- Get the ID of the latest post
- Using meta_query, how can i filter by a custom field and order by another one?
- Return all custom meta data for one custom post type
- Display Custom Post Type Fields
- Querying custom posts and regular posts
- Using Offset in Custom Post Type Query
- Posts per Page on custom Taxonomy Template
- Using Query Posts With Multiple Post Types And A Taxonomy
- How to get the parent’s taxonomy?
- Loading post content in FancyBox
- Query posts by custom post type and custom taxonomy
- ascending order custom post type
- Query not returning CPT posts
- Post Rank on Single Post page based on custom field
- How to get only one category of custom post type?
- Used with meta_query in query_posts works slowly
- Unable to display multiple post types in same query (WPML WP_Query)
- How to get current post id of a custom post type in a loop using template singel-{custom type}.php?
- Quickest way to get last or oldest post date – WP Query
- How to display recent posts added in several custom post types
- ‘category__and’ for custom taxonomy?
- Post the content of a specific “Custom Post Type” post within a post using a shortcode
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- List custom post type by custom tax term as page title
- query_posts with a custom post type, a meta_query and sorting by post date?
- Custom query shows custom post types in trash
- Combine query_posts() and get_posts() into single query
- how can i get posts from custom post type particular taxonomy category
- Setting posts per page in query_posts
- How to insert content from another Custom Post type into Post?
- How to query custom post types posts filtered by multiple custom taxonomies through a form selection
- Query/list all terms and their custom post count
- Display only one post each WEEK
- How to query_post custom posts within default taxonomy?
- Get posts between custom dates
- Query Custom posts of same taxonomy as the post itself
- get custom post type
- Polylang non-default language ignores tags in WP_Query
- Category with post type pagination returns 404
- Homepage’s content is dependent on the custom field values (set automatically), how do I get homepage to update without manually updating page?
- Limit the post for differents custom post type in the same wp_query
- Custom post type archive page for multiple post types
- Listing all term items alphabetically / sorting loop
- How to display Related Posts based on number of taxonomy terms matched
- Filter date from post meta when date is in string format
- How to show only the most recent post on my custom post type archive?
- How to make WP_Query not to show irrelevant posts?
- What is the ID parameter for custom post types in query_posts?
- How to limit post per page of custom post type?
- Custom query – get_the_terms not work
- 3 random images from custom post type, each in a div with a diffrent class
- Display custom posts randomly in custom taxonomy archive
- why is the current page title being output?
- Not able to export large no. of posts in csv
- Pagination not working on custom query on a page
- Loop through posts of only 2 statuses
- Targeting custom post type via functions.php doesn’t work
- Best way to create a search for custom post type by custom field values
- Dynamic category name in query post
- List all posts in taxonomy term
- Query all post types but limit to parents
- HM CMB: Post Select Field for CPT ID
- 4 posts per page from single category
- Display Posts Query with IF function
- Getting custom post type info using get_adjacent_post
- Custom Post Type Query W/Category Dropdown
- Query all posts under one taxonomy? Why is my code not working?
- Custom Post Type ‘Event’: Chronological list of recurring events from meta_values in array
- Showing only posts from the current user who is logged in?
- Why can’t I query more than 1 post type at a time?
- WP query_posts group by meta field related
- returning the currect URL for nested posts
- custom post type and a “sticky” position taxonomy
- Create a post automatically if search result has zero results
- Limit custom post type to the authors only on front-end!
- Posts per Page on custom Taxonomy Template
- Order Posts in Custom Order
- Use WP pagination functions on a custom page template
- Getting Custom Posts with Custom Taxonomy
- Query the title of the page to show posts with matching category in the loop
- How to Create movie schedule by custom post type query
- How do I get the posts from single page custom post type from a sidebar to display in a page?
- Main site single-property.php design, as homepage of a multisite
- WordPress custom post type
- How to get main div html to print a list of posts inside?
- WordPress custom post type queries
- Using $seed on a custom post type for randomly displayed posts
- Query Distinct Taxonomies of Custom Post Type
- Custom Query With Multiple Meta Key Value
- Advanced Custom Fields: query posts filtered by multiple field values
- What’s the best way to show custom post types? With page template it’s not perfect!
- How to grab data (titles, thumbnails and custom fields) from multiple posts to populate a new array efficiently?
- How to write an if statement which reads: ‘if is this custom post type or a child of it do the following’?
- Inserting two categories
- How do I correctly query posts from a post ID?
- How to exclude certain portfolios from a loop
- How to get Custom post type by related category ID
- Display ACF object field data using Elementor Custom Query