You could use get_the_title() to store the title inside a variable.. the_title() would actually print the title ..
Related Posts:
- How do I set the default admin sort order for a custom post type to a custom column?
- Delete all posts of a custom post type—efficiently
- Adding Custom Post Type Counts to the Dashboard
- Get Custom Taxonomy ID within loop
- Custom Post Types not showing on Custom Taxonomy archive page
- WordPress Custom Post Type Admin Page really slow
- is_singular() not working if called via callback function of admin-ajax.php
- Creating a gallery of featured images from custom post type
- Taxonomy terms with edit/filter link in wp-admin, in the list of custom posts
- Search everything (posts, pages, tags, cpt, meta)
- Reslug a Custom Post Type
- Removing CPT slug from URL results in 404 error for archive page
- front end radio custom taxonomy with custom post type
- Search Post Title Only [duplicate]
- How to add meta boxes(repeater fields) from WordPress back end?
- Displaying Meta Box Image
- Custom post type: No posts found even if counter has a count
- Admin List Dynamic Heading
- Beginner question: Accessing functions.php through admin web interface in order to import custom post types?
- How can i list custom post type categories?
- Query Custom Post by Category
- WP_Query and using a variable for ‘cat’=> in the args array = WP Bug?
- Custom post query by taxonomy
- Create second custom 404 page for selected post type
- Custom post type routing with hierarchy
- Role Capabilities: Add New Ones?
- Sub-Sub-Blogs — creating and importing content into a custom sub-type
- WordPress Create Post from front-end
- Custom post type with slug for plural (archive) and for single
- Custom post type archive not regarding ‘posts_per_page’ => -1
- If post_type is This or This
- Add category in post type dynamically
- Shortcode insertion in tab
- Group custom posts by custom taxonomy names
- Using GraphQL Plugin with Pods Framework
- Use regular category with custom post types
- Change Featured Image / Thumbnail CMS Description
- How to query custom post types posts filtered by multiple custom taxonomies through a form selection
- add custom field to custom post type
- How to convert custom post type based list to a dropdown list?
- Custom post type search using $_SESSION and pre_get_posts
- can’t see custom post content filtered under “mine” filter in admin panel
- read_post meta capability for anonymous users
- Custom template Page 2 not working
- Custom post type not showing in search result
- Search by tag name and category
- Can we create a custom post template for a specific page template
- Why is get_pages() returning a boolean?
- Settings API – save multiple tabs at once
- How to create multiple editor?
- make permalink go to a custom single.php file
- Make custom post meta sortable front end
- $wpdb->get_col and ORDER BY?
- Conflict between wp_list_pages and get_posts – list pages not displaying
- How to make a pulldown menu display custom meta terms in a theme?
- Show message when query has no posts
- Get category if used in a custom post type
- How to show all taxonomies within custom post type loop
- Custom Search | check multiple meta_value for search value
- get_terms() returns Trying to get property of non-object error for custom taxonomy
- Using WP_Query, I want to show posts that are associated with a custom taxonomy term
- Change the properties of a custom post type after it’s been registered?
- Limit search field to just search a custom post type with custom fields
- Meta box with front-end styling
- Order Custom Post Type Archive by multiple values in functions.php
- Organize Existing Posts from the Admin Area to a New Category
- Previous / Next Links For Custom Post Type Sorted By Meta_Value
- Show posts associated with ACF post object and custom post type
- “Menu order” being ignored when querying posts from a parent taxonomy with “include_children” set to true
- Custom fields array to display it monthly
- WordPress next post by ajax call on button click
- Custom post type query with taxonomy
- How do i enable categories for my custom post type?
- Modify default Related Posts Code to Custom Post Type
- Custom post shows 404 after theme change
- Show date as permalink for custom post type instead of post name
- Custom Post type shortcodes
- WordPress custom post type post item data – show/fetch only on click with Javascript dynamically?
- Display CPT taxonomies as an archive page
- assign array of category to custom post type
- Adding specific custom fields (images) to post excerpt
- filter using custom fields
- Change permalink incrementor into pseudo-subdirectory
- CPT – Custom Text fields point to new url permalinks
- Templates for CPT not working
- WordPress loop, show only one post per custom field
- Getting list of Categories for Custom Post Types
- Adding Information To All Posts Screen
- get children from current variable (taxonomy) via shortcode
- Show Templates in Custom Post Type Editor
- Retrieve a specific category of posts when using a custom post type
- Ideal top-level slug methods
- How can I make a custom post type that loops pages in a new dashboard page, each single page is a new dashboard page (all within the back-end)?
- How can you preserve URLs when moving posts to a custom post type?
- Require Custom Taxonomy for Custom Type
- Two blogs on same WP website
- Pagination not working for archive
- Save post_parent in a custom post type
- Get post from custom post type that title is like custom string [closed]
- Custom Post Type slug has the same Redirection entry