• 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

AgentPress Listings By Taxonomy & Term

This code enables you to display listings by taxonomy and term in any sidebar widget area. The code includes a shortcode you simply copy & paste into your editor or any text widget in any widget area.

Here’s an example showing the last 4 listings in the price taxonomy for the 100k-250k term

Usage With Other Taxonomies & Terms

Simply change the value for the taxonomy and term parameters in the code to any other taxonomy or term.

Example which displays listings from the status taxonomy with the sold term.

Usage With Other Custom Post Types

Simply change the value for the post type parameter from listing to the name of your CPT.

Code Installation

  1. Copy and paste all the PHP code to the end of your child themes functions file.
  2. Paste the shortcode [tax_terms] into a text widget in any type of sidebar or widget area.

Here’s the code for logged in members:

Register for full access

Related Tutorials

  • Custom Listings Template For AgentPress Pro

AgentPress Pro Theme Taxonomy Terms

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