If you would like to talk about your project call (02) 4474 5861

Plugin API/Action Reference/pre get posts

Description

This hook is called after the query variable object is created, but before the actual query is run.

The pre_get_posts action gives developers access to the $query object by reference (any changes you make to $query are made directly to the original object – no return value is necessary).

Usage

<?php add_action( 'pre_get_posts', 'your_function_name' ); ?>

Source: Plugin API/Action Reference/pre get posts « WordPress Codex

Instinctively creative & thoughtful strategies with result orientated outcomes

Visually communicating effectively with your potential & current customers adds to the good business experience.

BJ2DESIGN combines a wealth of design knowledge with creative business strategies to create result oriented work.

Read More About BJ2DESIGN

creative hand and tools