Changing the title tag from a shortcode

You are correct in your thinking that because the loop evaluates after the header you will not be able to get the contents of the loop there. The easiest way to do this is probably with jQuery. Something like this: <script type=”text/javascript”> $(document).ready(function() { document.title=”blah”; }); </script> Place this code in your loop, and the … Read more

Disabling archives, search results, comments, etc?

Two separate parts to consider: comments / trackbacks and archive pages. If you don’t enable comments and trackbacks, no links will exist for them, thus a 404 or redirect won’t be necessary. You can’t link to something that isn’t there 🙂 As for the archive pages, WP will create those whether you want them or … Read more

Change The Meta-Description Of Home-Page?

I just tried it with this code and it all worked as it should: <?php if ( is_home() ) : ?> <meta name=”description” content=”Your home page meta description” /> <?php else : ?> <meta name=”description” content=”Your non-homepage meta description” /> <?php endif; ?> You want to be sure there’s not a space between <? and … Read more

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