Queries - thehazels Queries - thehazelsthehazels

Queries

  • for PHP error reporting, set WP_DEBUG to true in wp-config.php
  • new WP_Query : fetch posts and pages, e.g.
  • while ($query->have_posts()) { 
      $query->the_post();
      echo the_title() . the_content();
    }
  • $query->result: whole thing
  • $query->request: sql query

About Antonia Whitaker

An administrative, sales and marketing background has given me an understanding of what users want from their website. I do not confuse issues with technical jargon and I listen to what people want.

23. October 2013 by Antonia Whitaker
Categories: Wordpress | Tags: | Leave a comment

Leave a Reply

Required fields are marked *