Solved

the posts are ASC how i can change  the posts sort to desc

Posted on 2008-06-25
5
278 Views
Last Modified: 2013-12-12
Dear experts
i use the wordpress , i notes that the posts sorts are ASC  the first posts appear first , how i can change the sort to be desc  (last post first) , i enterd to the setting and change the appearance of the posts but it still show me the first posts first , i think there is some change on the PHP code .

thank u
0
Comment
Question by:faresahmad
  • 2
5 Comments
 
LVL 6

Expert Comment

by:mmarth
ID: 21866842
krsort($array);
0
 
LVL 15

Accepted Solution

by:
dosth earned 500 total points
ID: 21915528
wp-includes\classes.php

line 564 or some thing

if ((empty($q['order'])) || ((strtoupper($q['order']) != 'ASC') && (strtoupper($q['order']) != 'DESC'))) {
                  $q['order']='ASC';
            }

change that to DESC


if ((empty($q['order'])) || ((strtoupper($q['order']) != 'ASC') && (strtoupper($q['order']) != 'DESC'))) {
                  $q['order']='DESC';
            }
0
 
LVL 15

Expert Comment

by:dosth
ID: 21925891
faresahmad, did you try this?
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part I (http://www.experts-exchange.com/Web_Development/Blogs/WordPress/A_8410-Getting-Started-In-WordPress-Part-I.html), I introduced you to the powerful WordPress backend, the WordPress administrative Dashboard.  In Part II, I will introduce yo…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now