Show different title on category page

You’ll need to change this in, most likely, your header.php file in your themes root. I would suggest that you use something like YoastSEO Plugin which will give you granular manipulation of your sites <title> and <meta> tags. If this is not an option, you would have to dive into the header.php template and update … Read more

Change meta data of pdf file

Google also pulls information from the PDF file itself. To truly fix the files, you’ll need Acrobat Pro. You can then edit the embedded title, and you then delete the original and upload a new one. If these PDFs are associated with specific Posts or Pages, it’s safest to go to that individual Post or … Read more

Redirecting “wrong” but working links to their canonical URL in order to prevent search engine penalties (e.g. /123/ at the end of URLs)

Ensure that you provide a canonical url – this should ensure that search engines don’t see the url variants as duplicate content. Additionally, appending a number on the url, will make WordPress try to access that page. Using a debug plugin, such as Debug Bar, is quite useful for diagnosing this kind of behaviour as … Read more

Adding a H1 Tag to Post Tags automatically, but hide the tag? (Same for Category)

Create custom action in function.php, which checks current page type (if it’s category or tag page). function hidden_term_name_action() { if( is_category() || is_tag() ){ $term_id = get_queried_object_id(); $term = get_term($term_id); if($term){ echo sprintf(‘<h1 style=”display:none;”>%s</h1>’, esc_attr($term->name)); } } } add_action(‘hidden_term_name’, ‘hidden_term_name_action’); Paste this code in header.php, which fires this action and pastes term title inside hidden … Read more

Yoast primary category query modification

I’m not sure this will fix it, but maybe try using the current category slug for the $current_category variable, instead of single_cat_title(), like so: $term = get_queried_object(); $current_category = $term->slug; This might help because the category_name parameter in WP_Query, despite its name, should be the term slug. single_cat_title() returns the displayed category title, not slug.

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