Filter display results

Posted in: Newspaper
Post count: 23

Dear admin,

I’m developing region filter for posts in my category page http://theccompany.site/category/conflict/ using Ajax. I finish all things and I need to display results exactly like category page. So I need a function that I give it the type of block or template that I want to display and to give it the Id of posts that my filter return. I find this example of function :
echo td_global_blocks::get_instance(‘td_block_7’)->render(array(
‘custom_title’ => __td(‘POPULAR POSTS’, TD_THEME_NAME),
‘limit’ => 3,
‘sort’ => ‘popular’
));
So I want to know how to add to this function id of posts that my filter return,or if there’s other function that it can help me to do what I want. Thank you

Best regards,

Post count: 22421

Hello,
Please note that if you are after adding a new sorting option , then you will need substantial coding skills for it and it is not covered by the theme support. We recommend hiring a freelancer to help out as time does not allow us to tackale time consuming tasks. We try to help out where we can but adding a new sorting option is not easy. Here is an example though of a user that has made a new sorting option so you can inspect the method used: https://forum.tagdiv.com/topic/implemented-new-sort-most-popular-among-posts-of-last-7-days/

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.