Creating mulitple loops in a sub-category page

I figured this out on my own. I use the code below and duplicated it as many times as I needed without any issues so far. If anyone thinks this is incorrect than please comment. I was not using the main loop anywhere else on this page and used WP_Query. <ul class=”subcats-list”> <?php $weightloss = … Read more

Loop from another WP site onto mine

If you want to grab info right off the page you should use one of these options if you don’t want a plugin, the content can be returned and parsed as xml, rss, json or just html/text. This is the proper way to do this. WordPress HTTP API: http://codex.wordpress.org/HTTP_API or fetch_feed() ( for rss only). … Read more

loop on page makes shortcode fail

You really shouldn’t use query_posts() for anything other than the main loop of that page and use either WP_Query() or get_posts(), try this: $my_query = new WP_Query( array( ‘category_name’ => ‘interesting_sites’, ‘posts_per_page’ => 3, ‘orderby’ => ‘rand’ ) ); while ($my_query->have_posts()){ $my_query->the_post(); ?> <div <?php post_class(); ?>> <h1><?php the_title(); ?></h1> <?php the_content(); ?> </div> <?php … Read more