Conditional tag for attachment posts

Most of the time you want to customize the output of different post (post, page, attachment or custom post type), you will want to use specific template files as it is easier to maintain. For example: single.php for standard post and defualt template for other post types with no specific tempalte file attachment.php for media … Read more

Add code only for blog posts

It’s just that you got it a bit wrong – it’s actually if(is_single()) (not singular). If you want to address pages in general (not posts I assume), you would use if(is_page()) . If you need to address a specific page you could use its ID like so if(is_page(13)) where 13 would be the ID of … Read more

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