Relationship field in shortcode | WordPress.org

[ad_1]

Hello,

I’m struggling with the following:

I have a pod called “cars” with entries such as Ford, Mondeo, Escort etc, and I’d like to make a list of cars on each manufacturer page (still the same pod called cars).

I created a relationship field “brand” with related type “cars”, where I can pick what I need, and I tried to use the shortcode to create a list, but no dice.

[pods name="cars" where=" brand.meta_value="@ID"" template="XX"]

I tried to use .slug, @post_title, @guid etc, various combinations, but nothing. How I can compare a value from a relationship field with current post, eg ID or post_title within the same pod (cars)?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer