Tag Info

New answers tagged


First of all i'd recommend you stop using title attribute for html container purpose: Image title (and the element name speaks for itself) should provide additional information and follow the rules of the regular title: it should be relevant, short, catchy, and concise (a title “offers advisory information about the element for which it is set“). ...


WordPress has a is_single() function to check for this very condition inside the loop. function wpse_75691_trim_words( $title ) { if( is_single() ) { return $title; } return wp_trim_words( $title, 10, '' ) . ' ...'; } There is a fairly robust list of conditional tags in the Codex.


Yes, you can include a check for is_home() or is_front_page() and return a different title based on that. Update: TwentyEleven does it like this for example (lines 27 to 45).


I appreciate your comments, I have looked into a possible repeated question, however I did not find it as helpful as the last comment by @michel after looking into the functions.php file I found this filter add_filter( 'wp_title', 'burger_wp_title', 10, 2 ); function burger_excerpt_length( $length ) { return 50; } Which I have gotten rid of and now I ...

Top 50 recent answers are included