Placing the content of one post in two side by side columns, newspaper style

Turns out there are specific CSS properties for columns: Here’s what worked for my case: .featured { -moz-column-count: 3; -moz-column-width:245px; -moz-column-gap: 40px; -webkit-column-count: 3; -webkit-column-gap : 40px; -webkit-column-width:245px; -moz-column-rule-color: #ccc; -moz-column-rule-style: solid; -moz-column-rule-width: 1px; -webkit-column-rule-color: #ccc; -webkit-column-rule-style: solid ; -webkit-column-rule-width: 1px; } And two refs for several other ways to go about it. ADVANCED 2 … Read more

Is there a way to target only images within the loop?

That depends. There is the_post_thumbnail which will echo the “featured” image and get_children can grab all attachments. Certain kinds of images aren’t attached though, so you can’t easily get those. Reference http://codex.wordpress.org/Function_Reference/the_post_thumbnail http://codex.wordpress.org/Function_Reference/get_children

The Loop isn’t working

The problem is not that the loop is not working. The problem is your code is not executing the loop the way you want it to. PHP does not do what you mean. It does exactly what you tell it to do. Like most computer languages, it is just an extremely fast and incredibly dumb … Read more

Building theme so user can change header image [closed]

You can add theme support in your functions file for a Custom Header page using this code which also enables you to add a default size and selector class which you can style with CSS. add_theme_support( ‘custom-header’, array( ‘width’ => 320, ‘height’ => 60, ‘header-selector’ => ‘.site-title a’, ‘header-text’ => false ) ); Or this … Read more

query_posts ignores the argument

Don’t use query_posts this will alter your main loop, you can query posts by day 1-31 using WP-Query(); $day = date(‘j’); $args = array( ‘day’ => $day); $day_query = new WP_Query($args); if ($day_query->have_posts()) : while ($day_query->have_posts()) : $day_query->the_post(); //show posts endwhile; wp_reset_postdata(); endif;

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