This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

rooman

  • ****
  • 219 posts
Custom Category
« on: July 03, 2022, 01:03:53 PM »
I want to fetch ads from a subcategory
to a Custom page
Is there a way to do that?

*

MB Themes

Re: Custom Category
« Reply #1 on: July 03, 2022, 09:23:28 PM »
Yes but you need to build page (if you mean static one) as PHP and then use ie osc_query_items() function
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

rooman

  • ****
  • 219 posts
Re: Custom Category
« Reply #2 on: July 04, 2022, 02:04:54 PM »
Yes but you need to build page (if you mean static one) as PHP and then use ie osc_query_items() function

Thank you very much
But the problem is that not all data is displayed
only 10 items
I want all the data
Thanks

« Last Edit: July 05, 2022, 12:04:43 PM by rooman »

Marked as best answer by frosticek on July 06, 2022, 11:05:34 AM
*

rooman

  • ****
  • 219 posts
Re: Custom Category
« Reply #3 on: July 05, 2022, 12:05:36 PM »
Yes but you need to build page (if you mean static one) as PHP and then use ie osc_query_items() function

Thank you very much
But the problem is that not all data is displayed
only 10 items
I want all the data
Thanks

I found the solution, thank you very much

Code: [Select]
osc_query_item(array('category' => '96',  'results_per_page' => 5,  'premium' => true))

*

rooman

  • ****
  • 219 posts
Re: Custom Category
« Reply #4 on: July 05, 2022, 12:20:02 PM »
This page is fixed and there are 15 pages of it
How do I make the code fetch data?
By category selected on this same page
Until 15 pages are not used
Like the item page idea
All data is fetched on one page
thank you

*

MB Themes

Re: Custom Category
« Reply #5 on: July 06, 2022, 11:06:07 AM »
@rooman
What about parameter you have in code?
Code: [Select]
'results_per_page' => 5
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

rooman

  • ****
  • 219 posts
Re: Custom Category
« Reply #6 on: July 06, 2022, 12:27:40 PM »
@rooman
What about parameter you have in code?
Code: [Select]
'results_per_page' => 5

You didn't understand what I mean
what i mean
I have 15 custom pages all with the same design but the difference is in the data
Why not combine them into just one custom page
Then 15-page data is called from a base on demand by city, for example
Each page has its own data separate from the other

*

MB Themes

Re: Custom Category
« Reply #7 on: July 06, 2022, 02:14:55 PM »
@rooman
Quote
...Why not combine them into just one custom page...

Because most osclass users has 0.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots