Related News is showing very old posts

Home Forums Gillion Theme Related News is showing very old posts

Home Forums Gillion Theme Related News is showing very old posts

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Hello,

     

    A major problem is that Related News is showing really old posts from years ago which does not make any sense.

     

    How can this be changed to show related posts based on date?

    Hi @RedWolfCy,

     

    I hope you are well today and thank you for your question.

     

    Could you please share the screenshot or the page URL from your site where it is displaying so that I can help you?

     

    Best regards,
    Shufflehound team

    Neverming, I have edited Single.php

     

    On line 470 of single.php you have set to retrieve posts randomly.

    So we changed

    orderby’ => ‘rand’

    to

    ‘orderby’ => ‘date’,
    ‘order’ => ‘DESC’

     

    It does not make sense to retrieve posts randomly. No news agency would like that. Considering changing that in your next update or at least give an option to select what we want to display.

    It is not just the random post but the random post of the same category attached to the post that you are seeing.

     

    The random post of the same category is displayed to avoid displaying the same posts again & again.

Viewing 4 posts - 1 through 4 (of 4 total)