pre_get_post Practical Uses

Fred Meyer / July 5, 2016 Posted In: Back-End Development Tags: hooks, pre_get_posts, Up and Running, WordPress APIs, WordPress functions Difficulty: Advanced, Intermediate In WordPress, pre_get_posts is an action that makes it possible to modify an existing WP_Query, before that query is actually run. pre_get_posts offers some solutions that are more performant than writing a … Read more

Querying relationship fields

Documentation  Guides  Querying relationship fields Overview This tutorial will cover the techniques to query relationship fields in both directions. The example used will be “Doctors” and “Locations”. Screenshots To save time, this tutorial will not cover the setup process for the 2 post types and their custom fields. However, the screenshots bellow show the data we will … Read more

How to Add Javascript (files or scripts) Without Breaking Your WordPress Site (functions.php, template or plugin)

Add Javascript To WordPress Without Breaking It (3 Easy Ways) Details David Attard Tips and Tricks Details Last Updated: 13 March 2021 How to Add Javascript (files or scripts) Without Breaking Your WordPress Site (functions.php, template or plugin) There are typically many reasons why you want to add Javascript to WordPress, either a small tweak … Read more

Show Buttons
Hide Buttons