Modifying the main WordPress query the right way

Introducing pre_get_posts With pre_get_posts you can modify the main query anywhere on your site without ever touching a single file within your theme and pagination will continue to work as expected. pre_get_posts is an action hook that is called after the query variable object is created, but before the actual query is run. This means … Continue reading “Modifying the main WordPress query the right way”

C# – Binding the XAML controls DatePicker and TimePicker to a variable of type DateTime

  Since Windows 8.1 is available the DatePicker and TimePicker controls. These controls allow an application to easily choose a date or time. Yet, as the DatePicker.Date property is of type DateTimeOffset and TimePicker.Time property is of type TimeSpan, they can not be binded directly to a variable or property of type DateTime. However, this … Continue reading “C# – Binding the XAML controls DatePicker and TimePicker to a variable of type DateTime”