Actually the above code (reposted below) worked perfectly. Guess it was a cache issue that it did not get reflected. Thanks for your time!
add_filter('wpseo_title', 'filter_keral_wpseo_title');
function filter_keral_wpseo_title($title) {
if( is_front_page() ) {
$recent = get_posts(array(
'author'=>1,
'orderby'=>'date',
'order'=>'desc',
'numberposts'=>1
));
if( $recent ){
$title = get_the_title($recent[0]->ID);
}
}
return $title;
}
Related Posts:
- Is there a blank theme framework compatible with WP 3.0? [closed]
- Plugin SVN & update API – how are plugins identified?
- How to use more than 256MB of memory in the admin?
- Localization: I want the backend: english and frontend in defined language
- Custom Search Query
- How to get current_cat in navbar, in single post
- Removing fields from the Media Uploader/Gallery
- Managing Images for a WordPress Blog: Picasa or Flickr?
- When using the block.getSaveElement hook can you output different markup based on whether or not you are in the edit view or the live page view?
- wordpress custom walker for thumbnails with custom menu
- Selecting An image from the Media LIbrary on the frontend
- WordPress audio player has two different styles
- Allow Users to Set Password During Registration
- How wp_ajax_nopriv since WordPress 3.1
- WordPress 3.1 removing ‘category’ from the slug
- Why does WordPress 3.0.4 keep deleting the contents of the .htaccess file?
- Set user loggin status?
- Intercept invalid email during lost_password
- Only append custom classes to nav menu items
- redirect product-category to a custom page
- Hide upload image fields for the different media upload popups
- custom headers for static home page and posts page
- WP-Admin gives 403 Forbidden after login on CentOS 7
- Custom Taxonomy Archive not displaying entries
- Creating Search Engine Friendly URL’s with Word Press
- How to redirect WooCommerce shop URL?
- Add Div to Comment Form
- Extend Screen Options
- Best way to implement a thumbnail-based gallery in WordPress?
- Why is my mod_rewrite not working?
- Show posts on a page based on a category and tag(s)
- Any tools for quickly grabbing comments / comment count?
- Custom WP_Query with no posts to output
- How to add “Read More…” link in twentytwenty
- How to get “string” away – replaced with “nothing” [closed]
- Can not sanitize select control in customize api
- Putting tag outside tag on generated Menu
- Multiple RSS feeds scroller in one sidebar
- How to encode author ID in the author permalink
- how do I remove the shipping from woocommerce thankyou page and from the email
- Steps for custom data retrieval
- Remove add news page and posts from menu
- Custom Status of Custom Post type need to EXCLUDE from Taxonomy pages
- redirect post id to post full url
- Silo Structure; Will links from home page to a Sub-category or Post undermine silo seo advantage? [closed]
- Is there a way to use LaTeX formatting for WordPress?
- Manage multiple domains from one backend
- Static admin page for all multisite users
- I’d like to move the Widgets Panel to the bottom of the list in Customizer
- custom default avatar showing broken link
- How can I create a permalink with two categories, with the order based on the parent category?
- Customize option – add two image uploader under same section
- Moving wp-content folder
- Modify the display Text of number of comments
- Toggle custom fields?
- Don’t change Custom Post Type slug to unique value
- Simplify the admin end
- Creating a shortcode by pulling in a custom field from a plugin
- Hide Customizer’s Widget Choices From The List
- How to add span on WordPress Title for first and third word
- Custom Post Types database persistance. Why not?
- Edit specific text on a static page
- Customise the Category Widget
- Showing Meta Box via Jquery Checkbox
- custom user meta query
- problem saving/ retrieving custom meta with wp alchemy metabox
- Problem with custom function from jQuery slider tutorial
- Create new network instance, import old single installs AND keep the urls?
- How to style bootstrap container in WordPress?
- Problems with setting up a subdomain to serve images and scripts
- Change login cookie expiration time?
- Disable “-mp4-image” screenshots from appearing in Media?
- wordpress custom posts page not showing
- Wrap WordPress Login Form in custom Div
- Automatically reject a comment if website field contains anything
- Post filter with multiple checkbox taxonomy terms
- Replace publish date in blog module with custom field
- Need help with drop down list on the profile
- Altered Media Library URLs
- generate a static copy of the website footer html
- Multi-site customization
- Creating WordPress staging environment software
- How to add H1 Tag on Homepage?
- Show different pages on site depending on user choice
- Is there a way to limit multi upload in media upload box?
- Use another theme template in my theme
- Display popular posts by how many hits it got within 30 days of publishing
- How to loop through 1 CPT with 2 Taxonomies
- Pulling posts into static site (wordpress as subdirectory)
- Call a duplicate registration form with other url
- How to support extra color options for shortcodes?
- WP Customizer – what types of fields is it capable of supporting?
- How to make my wordpress site responds for 2 domains
- User registration add user ID?
- Can’t Auto-Update, but permissions are good?
- pull custom fields values from wp-database in a nested foreach loop
- Pass query param to custom page
- How to answer, and we aren’t using WordPress to manage your site? [closed]
- responsive screen not working [closed]
- Is there a way to have information on one page automatically feed into another? [closed]