Posts Order tip, but where is index.php?
-
Hey! :) I wanted the order of my posts to be inverted so i found this:
In index.php file we need to replace <?php if (have_posts()) : while (have_posts()) : the_post(); ?> with below piece of code to have:
posts listed in reverse chronological order (from the oldest to the newest one)
<?php $posts=query_posts($query_string . ‘&order=asc’);
if (have_posts()) : while (have_posts()) : the_post(); ?>But where should I go to find this index.php file? Can you explain more? Thanks so much!!
-
If you are working with php files, you are not referring to a wordpress.COM blog. We can’t help you here, but you could get info at http://wordpress.org/support/
Read more about the differences:
https://en.forums.wordpress.com/topic/please-read-me-first-before-posting?replies=1 -
Oh i got it!! But i actually have a wordpress.com!!! what should i do to order the posts in a different way?? thank you sooo much! :)
-
If you are hosted here at wordpress.COM, you do not have access to the underlying theme files. This is a multi-user platform which means everyone shares the same underlying files. If you were allowed to change those files, it would effect everyone using that theme, not just you.
Short answer, you cannot change the order of the posts here at wordpress.COM.
-
The only thing you can do is create a contents page, with links to your posts in the order you want them. Then set a static page as your front (could be the contents page itself, or an intro), so that the main posts page doesn’t show.
- The topic ‘Posts Order tip, but where is index.php?’ is closed to new replies.