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
  • RedWolfCy
    Participant

    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

    RedWolfCy
    Participant

    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)

Popular choice

Professional Developers At Your Fingertips!

If you need services beyond standard support, we've got your back!

Services we offer:

Demo setup
Advanced customization
Layout adjustment
Graphic work / visualizations
Custom coding
Full WordPress development and design

Services

What we can offer

  • Demo setup +

    If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.

  • Layout adjustment +

    We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.

  • Advanced customization +

    More complex styling changes, theme option modifications, and third-party integrations.

  • Custom coding +

    If you need something that's not included in the theme, we can code it for you.

  • Graphic work / visualizations +

    Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.

  • Full WordPress development and design +

    Full website builds, custom theme development, or plugin creation from scratch.

  • About pricing +

    We'll provide a clear quote based on what you need. No hidden fees.

Professional Developers At Your Fingertips!

Custom Work Form