You need to set the number of arguments your filter accepts:
add_filter( 'the_title', 'alternatives_title', 10 /* Priority */, 2 /* Arguments */ );
And you only need to use the_title
(there is no get_the_title
filter).
Related Posts:
- Best way to fix bad count on All | Mine | Published
- Adding Information To All Posts Screen
- Hook for post and page load
- Adding a drag and drop re-ordering from a custom post type default list [closed]
- Filter for “get_post_type_archive_link()”
- How to add a button to custom post type’s posts-page
- flush_rewrite_rules on save_post Does Not Work on First Post Save
- Why get_next_post_link() or get_previous_post_link() doesn’t return the required links?
- Remove “Get Shortlink” button in admin of custom post type
- Modifying date filter on admin page for custom post type to link to custom field
- Why is conditionally loading a custom plugin’s code only on a specific custom post type causing the site content to disappear?
- How to change the post type a theme shows by default?
- Filter Posts from the Main Query
- How can I add a filter to a particular post format?
- Is there any way to get list of all possible filter hooks for all post types?
- Create new custom post and post category of same name
- wordpress remove views from action links in a custom post
- wp_insert_post wrong post type [closed]
- sortable columns for multiple custom post types not working
- How to filter url on post submission?
- Catch and display error on save_post action
- Display custom post front end filter by ACF equals current user
- Store a value in global scope after init hook is fired
- Dynamic page for nav items used as filters
- call a function when insert and update a custom post type
- Filter Content on all Post Types
- Can WordPress show posts based on a button that the user clicked 2 pages back?
- Change CPT Edit Target Link for Admin List
- How can I remove the “Add New” button in my custom post type?
- Submit post and upload image from front-end
- Linking Two Post Types
- How to remove Filters from post admin page?
- How can I filter posts by post_parent in the admin?
- How do I filter the excerpt metabox description in admin?
- How do I Filter Custom Post Type by Custom Taxonomy in the newest WordPress RESTful API?
- Pull Two Posts Into Custom Post Type `single-cpt.php`
- Remove date and category filters when editing custom post types
- Taxonomy terms with edit/filter link in wp-admin, in the list of custom posts
- Why is the »_builtin« parameter not advised in »register_post_type()« for custom post types?
- Multiple post types in archives (filter?)
- How to let custom post type posts show in standard post archive (like in homepage)?
- Rewrite custom post & taxonomy to share same URL path
- Highlight nav menu terms
- Filters post in admin with dropdown select, custom post type
- Admin List Dynamic Heading
- Get the post children count of a post
- get_template_part for custom post type content not working
- Show Two custom Post type and their posts on category page
- count_many_users_posts except current logged in user?
- Add html to cpt main page / admin edit.php
- Find the user who initially created the post
- Is there a way to have the view link on manage posts page to open in a new window or tab?
- How to query custom post types posts filtered by multiple custom taxonomies through a form selection
- How i can add ‘N’ page of ‘N’ pages under posts loop?
- Posts are duplicating on wp_post_update
- I would like to have different styles for my posts based on the content of each post
- List custom taxonomy specific to one custom post type
- How to Filter custom post type by taxonomy?
- Add custom post type settings to wordress default posts
- Side effects of Script and Iframe in post
- Filter hierarchical custom post type admin page by parent, and include children & grandchildren
- Versioned Custom Post Type (Not the same as revisions)
- Admin Column does not populate with data
- Some posts from custom post type to subdomains
- Add a custom text to admin footer in a Custom Post Type page
- I need to add a filter to prepend the term ‘National – ‘ to the post title if the post is tagged to multiple states
- Stores category posts in an array
- Add to ‘action’ within post.php to allow more actions when editing a Custom Post Type in a plugin
- Is it possible to add a shortcode below post title?
- Make a custom column sortable by a value from a different custom post type
- Send post changes to set email addresses (not users or subscribers)
- Display post from custom post type
- Custom post type title of each author in his own post
- Enable comments for post when comments meta box removed
- Custom Posttype URL
- Filter wordpress posts without searching the keywords in the post content
- open custom post type in popup window instead of page
- Custom Post Type action on post update
- Show Post Types customized in Template Page
- How do I find the count of the current post?
- Permalink for specific post type
- Update main post with same category when creating custom post to update the modified date
- Adding specific custom fields (images) to post excerpt
- How to use multiple orderby conditions on query search results? (orderby one post type, relevance)
- Add input radio menu to post
- How to properly get the wp_postmeta.meta_value of a custom post type in specifics?
- How to manage a dynamic multi-level page hierearchy system?
- Custom Post By Category
- custum post inner page not taking single-gallery.php? it redirecting to archive page
- Change Custom Post Type to Post + Category
- Get post from Category by Priority
- Grouping and paging CPT events by month with custom field date
- Cannot use pages created on WP
- How to get Last post Id of custom post type in wordpress
- Display a post count from a custom metabox selection
- Display all post types together
- Pulling in a particular post into a single page based on the post id passed into the code
- Custom My account page and custom page for editing posts
- Get post from custom post type that title is like custom string [closed]
- Sort ACF by custom taxonomy