October 2013 - thehazels October 2013 - thehazelsthehazels

Monthly Archives for October 2013

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

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

Modifying a theme

The best way to make any changes to a theme is to create a child theme. Full details are in the WordPress Codex. Here’s a reminder of the steps: Create directory for theme in wp-content/themes – convention is <name of … Continue reading

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