Custom Query


This document explains how to use the Custom Query option available in the Design tab of all three modules added to the Divi Page Builder by the Portfolio Posts Pro plugin.

Turning the Custom Query option on will bypass the query created by the Post Type checkboxes, Category checkboxes, and the Include and Exclude tag filters. Once the option is enabled, the module will look in the child theme’s functions.php file for the following filters:

dp_ppp_custom_query_args

Below is a basic example of how to use the filter:

The query created by this filter will be used on every instance of the module that has the Custom Query option turned on. More complex examples including how to create different queries for different pages can be found in this tutorial.

Share This