-
The default recently added content block has the code:
Code:
Only registered members can view the code.
I want to show the newest 4 ads from the category with ID 623, so I created a new content box as follows:
type: php
Code:
Only registered members can view the code.
but it doesn't limit it to the category with id 623, it still shows recent listings from all categories.
Is there something else I should enter in this block to make it show the recent listings only from category 623?
Or do I have to still do a code modification to make this work as in earlier years?
-
Any tip on using a content block to show images from only one category? I must be missing something in the post above, but I can't see it even after looking at it for an hour. Have a feeling it is something simple that I'm not seeing ;)
-
Go to plugins/listings_box/rlListingsBox.class.php > public function getListings
after:
PHP Code:
Only registered members can view the code.
add:
PHP Code:
Only registered members can view the code.
-
Fantastic! Works great. Thank you Rudi! :)