• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2662

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

Control Which AgentPress Listings Display in Widget & Archive

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:

exclude-listing

Here’s the code:

Register for full access

Related Tutorials

  • Custom Listings Template For AgentPress Pro

AgentPress Pro Theme

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems