mattpram
Forum Replies Created
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
Okay, no problem. Thanks for taking the time to investigate for me. I went and wrote quick shortcode which outputs featured listings for category.
In case you have anyone else that wants it they can look at https://gist.github.com/mattpramschufer/deda3eca703142bb3467190d883326bd
No that is what I had originally and it has no effect. It continues to show all featured listings not related to category.
I tried that and there is still no change. The shortcode seems to be pulling featured lists from ALL categories, not the category that is being viewed.
Any other suggestions?
Alex,
So I have it pretty much working the way I want, but I can not seem to figure out how to get the GD Listings shortcode to only output featured listings for the category that I am browsing.
Example, if you look at the attached screenshot this is of my category page. Who’s URL is /vendors/category/venues/
In the top featured image area I have
[gd_notifications]
[gd_category_description]
[gd_listings post_type="gd_place" related_to="category" post_limit="6" show_featured_only="1" sort_by="random" title_tag="h3" layout="3" ]
I thought that the related_to would make it target the category that I am currently browsing, but that does not seem to be the case.
As if I browse to a different category like /vendors/category/transportation/ the same three listings are featured.
Any advice?
Alex,
Thanks for the suggestions! One of the main reasons we are doing it this way is to have only our featured listings show an image, and all other listings just be a text listing. I understand the concern on not being able to show all of the featured listings. I will investigate more, but you put me in the right direction. Thanks again!
Get the latest news, tips, and exclusive content directly in your inbox.
Confirm your email address, and instantly receive the discount code :)