Please I want to prefix my WP posts title according to each category

You have already mentioned the function wp_title(). Right before outputting the title, it passes its value through the filter wp_title, which can be used here to prepend with additional information. add_filter(‘wp_title’, ‘WPSE_20181106_prepend_title’, 10, 3); function WPSE_20181106_prepend_title($title, $sep, $seplocation) { // not a single post if (!is_singular(‘post’)) { return $title; } // IDs of categories that … Read more

Change meta-box title- “LearnDash Quiz Settings” to “Quiz Settings”

You can do this via the available translation filters: add_filter( ‘gettext_with_context’, ‘gowp_replace_learndash_label’, 10, 4 ); function gowp_replace_learndash_label( $translation, $text, $context, $domain ) { if ( ( ‘LearnDash %s Settings’ == $text ) && ( ‘placeholder: Quiz’ == $context ) && ( ‘learndash’ == $domain ) ) { $translation = str_replace( ‘LearnDash ‘, ”, $translation ); … Read more

How to include a query_vars value in document_title_parts?

If your query var tags is registered properly then the following code snippet will definitely work, I’ve tested it. It’s a modified version of your code snippet. Please make sure to add the code to your functions.php file. function prefix_custom_title($title_parts) { global $wp_query; if (isset($wp_query->query_vars[‘tags’])) { $title_parts[‘title’] = $wp_query->query_vars[‘tags’]; } return $title_parts; } add_filter( ‘document_title_parts’, … Read more

Title tag come up differently on search results

I think that your title is too long. That’s why, Google has truncated it. However, if it’s not the case, try resubmitting your sitemap. Also, keep in mind that Google modifies the title according to what you’re looking for.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)