+ Reply to Thread
Page 3 of 3 FirstFirst 123
Results 21 to 24 of 24

Thread: Latest Items from individual categories- home page

  1. #21
    Senior Member
    Join Date
    Dec 2023
    Posts
    161
    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?
    Last edited by Horizon; January 16, 2024 at 07:39 AM.

  2. #22
    Senior Member
    Join Date
    Dec 2023
    Posts
    161
    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

  3. #23
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,172
    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

  4. #24
    Senior Member
    Join Date
    Dec 2023
    Posts
    161
    Fantastic! Works great. Thank you Rudi!

+ Reply to Thread