Using MyListing Theme: How to output listing urls with specific taxonomy value?
-
Hi there,
so this is a bit more advanced query I guess.
Basically I want to show the related Listings widget based on current post values. The relation between listings and the post pages is a custom taxonomy called “Car brands”
The Goal is to have a Dynamic Post Template also to show specific listings based on the current post values (not Archive).
Also to have Parent > Child functionality, which is not possible with “Pages”.I don’t want to have hundreds of Elementor post templates.
See: https://ibb.co/HdsT2nP___
In the pods settings I’ve gotten so far, that only Listings of a specific listing type is shown in the post.
What I added in the Custom Where field is:
select ojj_postmeta.post_id from ojj_postmeta where ojj_postmeta.meta_key = '_case27_listing_type' and
t.
ID= ojj_postmeta.post_id and ojj_postmeta.meta_value = 'place'
But how do I get the URL instead of a simple text of the listings?
[pods field=’car_brand.url’] didn’t work for me…I would like to automate it a bit more.
Currently I have to choose the specific listings manually in the post but the widget should show specific listings based on the taxonomy value automatically which was chosen by the user.
For example:
User A chose “BMW M4” (from a custom taxonomy) in his listing to display it. Then on the detail page of “BMW M4 (Dynamic Post Page A)” the Listing URL of User A should appear there.User B chose “Audi A1” in his listing.
Detail page “Audi A1 (Still Dynamic Post Page A) should show the Listing URL of User B”User C also chose “BMW M4” in his listing to display it.
Now the Detail page of “BMW M4” should show 2 Listing URL of User A and User B.and so on..
Hope you can help me with that
- The topic ‘Using MyListing Theme: How to output listing urls with specific taxonomy value?’ is closed to new replies.