How to query posts from single post format on Genesis framework

The taxonomy should be post_format and term should be post-format-link. Also simple taxonomy queries are deprecated since 3.1 in favor of tax_query: $args = array( ‘posts_per_page’ => 5, ‘tax_query’ => array( array( ‘taxonomy’ => ‘post_format’, ‘field’ => ‘slug’, ‘terms’ => ‘post-format-link’ ) ) ); $recent = new WP_Query( $args );

Theme using masonry layout script rendering overlaped images in Google Chrome [closed]

I can’t find any reference about it but it seems Google Chrome (v 21.0.1180.60) do need specified image sizes, in image tag or passing this in css (either class or local): style=”display:block;width:333px;height:333px” Or: container.img { display:block;width:333px;height:333px } Maybe this issue has something to do with this question, but I’m not sure. They say images need … Read more

Replace & with &

It looks like the function returning an url, And is always good practice to use esc_url(); wordpress function to escape all characters including the – & into & before displaying. Example usage – return esc_url( $incomingLink );

how to display post in jquery slider and carousel

You want get_posts not query_posts. Only use the latter if you need to modify the main query. Something like this (in whatever template file you want): <ul class=”slider”> <?php global $post; $args = array( ‘numberposts’ => 5, ‘order’=> ‘ASC’, ‘orderby’ => ‘title’ ); $myposts = get_posts( $args ); foreach( $myposts as $post ) : setup_postdata($post); … Read more