Post Attachment missing head (stylesheets/js/what-not)

A good place to start is with the template hierarchy flow chart. http://codex.wordpress.org/images/1/18/Template_Hierarchy.png I’m always consulting this page. When you say modified twenty eleven, what do you mean? The image.php file is what handles image attachment pages in twenty eleven. I’m not familiar entirely with how it works, but it may be also making a … Read more

How to handle dates, trying to calculate time since a post

You don’t need to know the user’s timezone, because time since the post was published is independent of timezone. WordPress sets your timezone to UTC so that internally, all dates are dealt with the same and consistent timezone. You should avoid using php functions, and instead use the WordPress provided functions. Incidently, human_time_diff() does exactly … Read more

Latest posts on all pages

Did see your code before, and my original solution would not have worked. Do you have a link to the website this is on? Maybe a long shot as not 100% sure what this is doing, have you tried changing the value == “1” to == “2” and see what happens?

Choose options via url

I think this Custom Field Template plugin will help you. Plugin site. Don’t worry about Chinese screenshots. If you set at least one Custom Field Template for one category, when creating post and check that category additional options will appear.

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