Adding featured listings randomize on sidebar using widget

I would like to add a sidebar widget to listing page showing 1 item randomized featured listing of a category. How do i achieve this?

Hi,

Please use this shortcode: [hivepress_listings category="123" order=β€œrandom” number="1"]. You need to add it in Appearance > Widgets > Listing (sidebar) > selecting the Text block. Please note that in category=β€œ123” you need to specify the ID of your category that can be viewed in Listings > Categories in the URL. Also, note that this may require additional CSS tweaks.

I hope it helps

Thank you for your reply. The code works to pull the listing from select category however random does not work. It is showing in the order of date listed. When i change the value of number=β€œ3” the listing shown is not randomized even when i refresh the page multiple times it keeps showing in the same order. When i set the value of number=β€œ1” it keeps showing the same most recent featured listing.

And is it possible for the shortcode to show the listing pulled from 262 on certain category? For example i want featured listing from category 262 to be shown on listing page of category 35 and verified listing from category 262 to be shown on category 36

It is ok it is working now. it was caching issue

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.