“Warning: count()” printing in Page templates

Turns out the problem was Jetpack. I looked through the <head> to see where in the stack it was breaking and it was right in the middle of the Jetpack plugin code. Looks like it’s being worked on here: https://github.com/Automattic/jetpack/issues/8156 under “PHP warnings.” Since Jetpack isn’t necessary for my dev server on this project, I … Read more

How to add meta tags inside single image page?

Probably because when the execution is hitting your code is already too late to hook on wp_head. If you want to have your code in image.php, make sure you place it before get_header(). In any case, I would move the code to functions.php or dedicated file and maybe use is_attachment() to conditionally print the meta … Read more

Custom page with WP Header showing Page not found title

ok so I figured this out. Here are the steps I took Create a php file in your themes directory wordpress Dir -> Themes -> YOUR THEME NAME -> newfile.php In this file add the following: <?php /* Template Name: theme-child */ ?> <?php get_header(); ?> // your custom script here <?php get_footer(); ?> **Then … Read more

wp_head function outputs after

‘$tracking_code’ ist just a string. It closes <head> automatically. So, no, it doesn’t come after the head, you just failed to use source view. Firebug and similar tools show just the rendered DOM, that’s not good enough. Fix: echo $tracking_code;.

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