This code enables you to control which listings display both on your listings archive pages and the listings widget area.
The code is tested using the AgentPress Pro child theme by StudioPress which includes the listings archive.php page and also uses the listings plugin.
This tutorial is written in response to this question by a member of this site:
I want to control which listings appear in the Home – Top Widget Area here. As it is now, the last listings that were created are displayed.
This example excludes listing 2 with a post i.d of 729 from the listings widget and listings archive:
Here’s the code:
You need to pay to fully access this tutorial.
Enjoy unlimited access & coding support by registering.