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
- Permalinks: custom post type -> custom taxonomy -> post
- How to Add Tags to Custom Post Type?
- How come Featured Image isn’t showing up in my Custom Post Type?
- Adding ‘menu order’ column to custom post type admin screen
- Efficient Taxonomy Intersection
- Rewrite rule for Custom post type Monthly and Yearly archive
- query related posts in a custom post type by a custom taxonomy
- Help with a TV series Rewrite structure
- Get post type on edit page
- Remove quick edit for custom post type
- Passing Variable as URL Parameter — Security concerns?
- Pagination go to first page if i’m on last post
- Grossly inefficient wordpress loops!
- Custom field values get deleted
- Pagination throws 404
- Include custom post type in “all posts”
- How to create a permalink for custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name
- Custom Select Query with Custom Post Types
- Category and post tag archives do not include posts from custom post type
- Displaying different custom post types under one admin menu
- Can I change the slug of my archive page on a Custom post type?
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- How to set up htaccess to redirect a particular post type or subdirectory to HTTPS?
- Custom Post Type Metabox – Not Saving
- WordPress Orderby Numeric Value Not Working
- Cherry framework adding custom post type
- Include custom post type single template, but respect theme override of template if it exists
- How to have custom post type /example/ and then posts /example/posts.html
- Multiple Loops On Custom Post Type Template?
- Cannot add custom field to “orderby” parameter in Rest API
- Not Able to Get Custom Post Type Gallery Images URL
- Custom post type and custom taxonomy with the same slug using the file page taxonomy only as directory
- Building a Treatments Page, What Do I Use?
- How do I programmatically create new posts of a custom post type over the XML-RPC API?
- Migrating a taxonomy’s tags to the native category
- Make custom post types and pages place nice, re: rewrite
- PHP question: how to combine syntax?
- Why do I have to press the “Update” button twice to save my meta box values?
- How to create connection among state, city, store and store number based on URL
- filter by custom taxonomy using ajax
- How to get the current category with custom posts
- Modify Posts from Custom_Post_Type within the plugin
- Importing JSON feed giving Notice: Array to string conversion error
- Custom Post Types and Complex Content Hierarchy
- How do I “trash” a custom post type post while logged in as Admin
- Pagenavi Plugin and Custom Post Type – Multipage results
- Easy-Post-Type is visible in search, but 404 when clicked
- custom filtering admin columns
- How to display custom taxonomy term specific post?
- Remove Header and style.css from Specific Post template
- How to remove default modules on single event page on Modern Events Calendar
- Show posts from WP Custom Post Type selected from a field in a metabox
- WordPress post not executing shortcode until updated
- Keep custom read more link on the same line as excerpt text
- Custom Post Type
- Force WordPress to only match URL in category
- Can I create a taxonomy term that mirrors the name of a new custom post?
- Ads below footer
- Rewrite for custom type and custom taxonomy
- Query child posts on parents single.php?
- Show custom post along with default post
- Template with Custom Post Type (Custom Tables) does not work
- Ordering custom posts
- Where do I insert to? [closed]
- WooCommerce – Complete Order when an action occurs
- How to debug a 404 error on pages whose content is perfectly displayed when I explore it?
- Delete old thumbnail when updating new