if (strpos($post->post_title,'string_it_needs_to_match') === true){
echo the_content();
}
to explain
strpos
– method of comparing strings
===
makes sure strings are identical
Related Posts:
- array_pop() expects array, boolean given for $event_type_term ->slug
- SQL to update custom post taxonomies
- Query multiple taxonomy in Custom Post Type
- Querying Posts by Taxonomy From Alternate Network Site
- Include different loop templates in search query
- Automatically adding meta data to posts or multiple query help
- WP_Query search posts by custom post type and custom taxonomy
- Is it possible to create a shortcode that will query a post based on taxonomies?
- Show Two custom Post type and their posts on category page
- How to filter custom taxonomy categories on archive?
- Querying Term Posts in Loop
- Am unable to reset a query properly
- Get next and previous 3 posts in a term in single post page
- Making certain categories of CPT not publicly queryable
- Search / Filter posts on Title/Content OR Tags
- Get parse_query filter to return slug instead of id
- How do I move/order posts with a tag to the end?
- Specific query for custom post type
- First custom field value (out of several) displayed twice after query
- WP_Query orderby and tax_query
- I am trying to hide a custom post type category to logged in users with Pre_Get_Posts
- Query Custom Post Types with checkboxes
- WP_Query() with custom post type and taxonomy — get all terms?
- Can I query posts by taxonomy conditionally based on post type?
- Query not work for current taxonomy
- Display a post from custom post type only if all the selected taxonomies and custom field value matches the record
- Custom Post Type not showing in main loop
- get_terms() returns Trying to get property of non-object error for custom taxonomy
- Getting custom post types to properly display alphabetically
- Custom taxonomy query showing more than 4 posts
- Custom types, taxonomies and query optimization
- Query Custom Post by taxonomy multiple categories
- Query custom posts from custom taxonomy
- Can’t Get Parent and Child Categories of Custom Taxonomy to Display
- How can I loop at a Specific Taxonomy from a custom post type?
- Custom archive page for custom taxonomy and pagination issue
- How to divide Subcategories into pages of parent category wordpress
- Check that a slug is present in the get_terms request
- Is there a way to use ‘publicly_queryable’ => false only on specific taxonomy term?
- Displaying all posts by category and showing content on click
- WP_Query for custom taxonomies showing posts from non-specified terms?
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- If custom taxonomy exist on post?
- Get posts of an specific term of a custom taxonomy
- Query Pulling the same post twice
- Query Only Show Text on Posts With Certain Taxonomy Tag
- how to limit query_post to first page?
- taxonomy terms array not working
- Listing custom post type items from a couple of custom taxonomies
- posting twice from an array?
- Create a shortcode to display custom post types with a specific taxonomy
- List the categories under custom taxonomy
- Populate Taxonomy from Custom Posts
- Show related posts on single page by custom taxonomy on custom post
- Exclude from search all custom posts which are NOT in a taxonomy term
- Sorting for each custom taxonomy
- Dynamic variable for custom taxonomy in loop?
- wp_insert_post custom taxonomy
- Append taxonomy terms as class names in markup?
- Want to turn WordPress into a paid subscription directory
- Why is my custom loop not filtering correctly nor paginating?
- Display types of posts in edit.php instead of All, Published, Scheduled and Draft
- Custom post types with custom directories
- How to output wordpress custom tags separated by comma?
- Does WordPress limit the length of slug names for Post Meta or Terms?
- Custom Taxonomy Permalinks Redirection
- shortcode to show custom post types by category
- Single Template that can be applied only via URL
- convert custom query to wp_query
- How to hook custom taxonomies to custom post types and make the permalinks work?
- Display a grid of taxonomy terms at root taxonomy page
- Display Custom Taxonomy Alphabetically
- How to change permalink to include custom post type
- Listing all term items alphabetically / sorting loop
- Change the Custom Taxonomy URL Slug pattern
- Losing Nav Active State in Menu
- Custom select query for taxonomies that have posts categorized in another taxonomy
- Custom Post Types Archives and Single Pages not showing custom taxonomy data
- Implementing Pillar Posts; Long Posts yet with Some Page-Like Handling?
- Dynamically insert code to custom post type loop
- Custom taxonomy template list not working (404)
- Link From Single Post To Taxonomy Term Archive Page
- Calling related posts to a custom post type, taxonomy & Tag id
- Better in the long run to use post date or custom taxonomy to sort/separate posts by year?
- How to create subdomain for custom post type and associated custom taxonomies
- Should I use a custom taxonomy or custom post type for grouping a list of panels associated with a group of tests?
- Remove custom taxonamy slug with pagination
- Taxonomies are not showing in the category dropdown
- Custom Taxonomy – fields
- CPT Loop, include taxonomies and disclude others?
- Template hierarchy changes when custom post-type permalink leverages custom taxonomy
- Custom taxonomy- only output relevant terms
- Post types showing tables…Can I do that?
- Dropdown switching subcategories portfolio
- How to solve performance issue caused by custom post type overview with 20k+ custom taxonomy terms
- Prevent repetitive terms in get_the_term_list
- Displaying posts exclusively in their category (not parent)
- Show taxonomies from specific CPT
- Category / Custom Post Type permalink issue
- How to add post type in masonry posts elementory widget