query_posts thumbnail condition

the two single quote marks (after the number 1) in this line (of the top posted code section) seem to be causing the error – there should only be one single quote; shown below: query_posts(‘orderby=date&cat=” . $cat . “&order=ASC&posts_per_page=-1’); it is just puzzling that your other code (with the same error) alledegly does work (?) … Read more

Script that gets the first tag of post and query all other posts with the same tag

the query expects the tag slug, not the tag name: $tag = $tag->slug . ‘ ‘; and there is an error in the query syntax; corrected: query_posts(‘tag=’.$tag.’&posts_per_page=-1′); edit: full code rearranged: $posttags = get_the_tags(); if ($posttags) { foreach($posttags as $tag) { $tag = $tag->slug; break; } query_posts(‘tag=’.$tag.’&posts_per_page=-1′); while (have_posts()) : the_post(); ?> <p><a href=”https://wordpress.stackexchange.com/questions/27106/<?php the_permalink(); … Read more

Best Query for blog posts

Do the following: Create a blank page with the name “Blog” or “News” or whatever you like to call it. Go to Settings -> Reading and select A static page from Front page displays section. Choose your front-page from the Front page dropdown box, and your blog page (the page you created in step 1) … Read more

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