How to remove uncategorised posts from WordPress

You have to add the argument to exclude the ‘Uncategorised’ category using this: <?php wp_list_categories(‘title_li=&exclude=XX’); ?> where XX is the ID of the category to exclude. Here is the codex page http://codex.wordpress.org/Template_Tags/wp_list_categories#Include_or_Exclude_Categories

Inject code in the header of my template

However, I won’t be able to find the author name before entering in the loop? This isn’t completely correct. The global variable $post is set by WP_Query before the Loop begins and is set to the first post in the Loop. Since the main query runs before the template loads that means that $post is … Read more

Change header based on visitor choice

I would approach this by setting sessions. So when the user makes a selection set a session which contains the users choice. Then in wp_head write an if statement that pulls the relevant template dependant upon the value of the session.

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