WordPress has a handy function called post_exists()
which allows you to find an existing post by its title, content, and/or date. It returns the post ID on success or 0 otherwise.
In your case, you can use $post_id = post_exists( '', '{"member_id":33}' )
to find the post you’re looking for.
Note: That function doesn’t check the post type so you’d need to do that separately or roll your own function if it’s necessary. I doubt it though that you have other posts with the same content 🙂
Related Posts:
- Add special meta box to custom post type
- SQL to update custom post taxonomies
- Sorting a list of posts displayed under a list of associated terms (which should be sorted without initial articles)
- Remove tinyMCE from admin and replace with textarea
- How do I create new content pages for my Custom Post Type?
- Jetpack infinite scroll render – make different depending on post type?
- Query to get the author who having maximum number of post (custom post type)
- What is the impact if i ignore title and content in my custom post types CPT?
- Query that joins the postmeta table twice
- WordPress theme options vs custom post types
- Export entries and multiple custom field meta to .csv?
- How to Mass Delete Images from Media Library
- Best way to save horoscope data
- Including metaboxes from custom post types in global search — continued
- Order a custom post type admin screen by a second custom post type title
- How can you use one database with multisite
- Front end access to a SQL data repository – recommended way?
- get parent content inside child posts
- How to concatenate two separate colums into one?
- Custom Search | check multiple meta_value for search value
- Adding Template Post Content
- A faster way to query custom post types with multiple conditions?
- How should I structure complex content hierarchies?
- WordPress general content best pratices
- php dynamic content inside shortcode
- SELECT custom post type and its meta in SQL
- WP_query has incorrect wp_posts.post_name = ‘asc’ when I have custom post type called ‘order’
- How to transfer categories (default) to custom taxonomy?
- How might I change the destination of a link?
- Custom post order when using OR relation
- How to use TOC with ACF?
- This wp_query will not return any posts and only seems to work with post_status inherit?
- Expandable WordPress content (text) inside a post
- How do test if a post is a custom post type?
- Where to put my code: plugin or functions.php?
- What does this PHP function code mean? [closed]
- Remove slug from custom post type post URLs
- How to disable the single view for a custom post type?
- Custom post types, taxonomies, and permalinks
- Query all posts where a meta key does not exist
- How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name
- How to get all taxonomies of a post type?
- How to sort the admin area of a WordPress custom post type by a custom field
- How to create a custom search for custom post type?
- Deregister custom post types
- Can I assign a template to a custom post type?
- Permalinks: custom post type -> custom taxonomy -> post
- Should I use custom post types or a custom database tables for plugin development?
- Enable revisions for custom post type
- Extending the search context in the admin list post screen
- How do I query a custom post type with a custom taxonomy?
- Adding a Custom Post Type into the menu screen
- Pagination not working with custom loop
- How to Add Tags to Custom Post Type?
- How come Featured Image isn’t showing up in my Custom Post Type?
- Custom Post Type URL Rewriting?
- Add category base to url in custom post type/taxonomy
- Include custom taxonomy term in search
- Is It Possible To Add Custom Post Type Menu As Another Custom Post Type Sub Menu
- Adding ‘menu order’ column to custom post type admin screen
- Capabilities and Custom Post Types
- Can the Next/Prev Post links be ordered by menu order or by a meta key?
- what is the correct way to compare dates in a WP query_posts meta_query
- Use register_post_type() to modify an existing post type
- Custom Taxonomy specific to a Custom Post type
- Renaming Custom Post Types and Taxonomies
- List all posts in custom post type by taxonomy
- Redeclare/Change Slug of a Plugin’s Custom Post Type
- Allow member to have access to custom post type only. Permission to only edit their own posts
- Mixing custom post type and taxonomy rewrite structures?
- Advanced search form with filters for custom taxonomies and custom fields
- Highlighting wp_nav_menu() Ancestor Class w/o Children in Nav Structure?
- Resolve a custom post type name vs. page permalink conflict (same slug)
- Get custom post_type’s archive URL
- Enable Gutenberg on custom post type
- Is there a way to get N number of WYSIWYG editors in a custom post type?
- Can multiple custom post types share a custom taxonomy?
- How to Add Custom Fields to a Custom Post Type?
- Hook for post and page load
- How to enqueue scripts on custom post add/edit pages?
- How to display value of custom fields in page
- Where are wordpress custom types stored?
- Using save_post to replace the post’s title
- Custom Post Type pages are “not found”
- Possible to hide Custom Post Type UI/Menu from specific User Roles?
- How do I safely change the name of a custom post type?
- Custom post type single page returns 404 error
- Change “Enter Title Here” help text on a custom post type
- Hide content box with Custom Post Type?
- Change the text on the Publish button
- WP REST API fetch posts from post type
- Remove taxonomy slug from a custom hierarchical taxonomy permalink
- Adding categories to custom post type in permalink
- Load a script just to custom post type in admin
- Display all posts in a custom post type, grouped by a custom taxonomy
- How do you use a CPT as the default home page?
- get_terms by custom post type
- single-{$post_type}-{slug}.php for custom post types
- How do you use orderby with meta_query in WordPress 3.1?
- Custom post type single-{custom}.php not working