#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
How-to and Troubles...
Sort topics by its ...
 
Share:
Notifications
Clear all

[Solved] Sort topics by its created time, not the last reply's created time  

    Last Post
RSS

zmgma
Posts: 19
 zmgma
Topic starter
February 10, 2020 12:02 pm
(@zmgma)
Active Member
Joined: 12 months ago

Hello

I have a question regarding topic's order.

Is it possible to sort topics by its created time, not the last reply's created time?

I don't want to refresh the topics' order when the reply is created.

Could you let me know the file that I have to edit and some clues?

Thank you for your efforts always.

Best regards,

Dan

Topic Tags
threaded layout customization topics order template customization template
4 Replies
Sofy
Posts: 3775
Sofy - Facebook Sofy - Twitter
 Sofy
Admin
February 11, 2020 7:48 am
(@sofy)
Support Team
Joined: 3 years ago

Hi @zmgma,

I'm sorry, but wpForo doesn't have such a feature.

Please let us know the wpForo layout you're using, we'll try to find some solution for you. 

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

zmgma
Posts: 19
 zmgma
Topic starter
February 11, 2020 12:28 pm
(@zmgma)
Active Member
Joined: 12 months ago

Hi @sofy

Thank you for your reply. I'm using threaded layout, and as I explained, I would not like to sort by replies created time.

I hope all topics are sorted by its created time, not last reply's created time.

REF: https://imgur.com/8TPINPz

Could you let me know which file I have to edit and clues?

Many thanks:)

This post was modified 11 months ago 3 times by zmgma
Robert
Posts: 7572
 Robert
Admin
February 16, 2020 10:21 am
(@robert)
Support Team
Joined: 5 years ago

Hi @zmgma,

Please do these steps to make the change in update-safe way.

1. Create a /wpforo/ folder in your current active theme folder. If you have a child theme create it in the child theme folder.

2. Create /layouts/ folder in the /wpforo/ folder, then create /4/ folder in the /layout/ folder. So the end directory should look like this: /wp-content/themes/your-active-theme/wpforo/layouts/4/

3. Copy /wp-content/plugins/wpforo/wpf-themes/classic/layouts/4/forum.php file and paste in the new created directory: /wp-content/themes/your-active-theme/wpforo/layouts/4/

4. Edit the copied file and find this line:

$args = array( 'row_count' => WPF()->forum->options['layout_threaded_intro_topics_count'], 'forumids' => $child_forums, 'orderby' => 'type, modified', 'order' => 'DESC' );

5. Change it to this and save:

$args = array( 'row_count' => WPF()->forum->options['layout_threaded_intro_topics_count'], 'forumids' => $child_forums, 'orderby' => 'type, created', 'order' => 'DESC' );

More information about update-safe way customization of wpForo template files you can find here: https://wpforo.com/docs/root/forum-themes/theme-customization/

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

zmgma liked
zmgma
Posts: 19
 zmgma
Topic starter
February 16, 2020 3:57 pm
(@zmgma)
Active Member
Joined: 12 months ago

AWESOME @robert

Thank you so much for your great supports!!!

I really appreciate it! You made my day thank you and have a nice day:)

Robert liked
  All forum topics
  Previous Topic
Next Topic  
Related Topics
  • Changing to a threaded layout
    1 week ago
  • Post order
    2 months ago
  • Link to the last reply on threaded layout doesn't show up for guest posting
    4 months ago
  • Using Threaded format, how to mark Topic as Solved?
    6 months ago
  • how to use Category Layout (Extended) but my replay post like Threaded
    6 months ago
Topic Tags:  threaded layout (30), customization (18), topics order (4), template customization (3), template (4),

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages  wpforo-advanced-attachments-128x128  wpforo-embeds-128x128 wpForo User Custom Fields addon  wpForo – Blog Cross Posting addon  wpForo Ads Manager
View all Addons »

Recent Topics

  • Subscribing through the subscription manager in some cases doesn't update the "subscribe to topics" button on forum

    By afreymuth, 11 hours ago

  • a little problem, I need help, thanks

    By adultwork, 12 hours ago

  • How to configure: When click on Topic it goes to 1st page (Topic starter)

    By nalin_duminda, 14 hours ago

  • Seeking assistance solving new users not getting a confirmation emails on WP Multisite

    By Hansie, 15 hours ago

  • White text on White background...again and again...

    By Morosirus, 21 hours ago

  • display a shortcode in the category description

    By mazohho, 21 hours ago

Topic Tags

  • new features43
  • seo39
  • translation36
  • plugin conflict35
  • forum33
  • buddypress31
  • login31
  • threaded layout30
  • registration29
  • ultimate member28
  • moderation27
  • editor25
  • avatar24
  • shortcode24
  • css23
  • tags22
  • menu21
  • migration20
  • url20
  • profile20
View all tags (1474)

Recent Posts

  • RE: Fatal error:

    @robert OK, thanks my prob...

    By Bujkilla, 6 hours ago

  • RE: Views are no longer counted

    Again , Views are counted very well, but not in real...

    By Robert, 10 hours ago

  • RE: How are "views" calculated?

    Please read this topic attentive from first post. It's ...

    By Robert, 10 hours ago

  • Subscribing through the subscription manager in some cases doesn't update the "subscribe to topics" button on forum

    Hi,I think this is just a development oversight more th...

    By afreymuth, 11 hours ago

  • a little problem, I need help, thanks

    Hello,I'm not sure if I posted where I should, but I wa...

    By adultwork, 12 hours ago

  • How to configure: When click on Topic it goes to 1st page (Topic starter)

    Currently when click on topic it goes to the last page ...

    By nalin_duminda, 14 hours ago

  • Seeking assistance solving new users not getting a confirmation emails on WP Multisite

    Problem: When a new user registers through WPForo, they...

    By Hansie, 15 hours ago

Share:
  Forum Statistics
20 Forums
7,788 Topics
39.1 K Posts
5 Online
14.9 K Members

Latest Post: Fatal error: Our newest member: Erika53126 Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2021 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Documentation