kylecadmore
Member
Posted 1 year ago #
Hi I am using the monochrome theme. It automatically puts a page called HOME as the first Page and puts all Posts into it. I have managed to go into the text editor and in the Header change the name HOME to BLOG. However, I want to move this page to either the third or fourth page. How do i do this, as there is no options in my pages to edit where the Blog page goes in order?
http://www.cadmore.co.uk
The HEADER code is copied below for your reference:
[code removed per forum rules - use pastebin.com for this purpose]
kylecadmore
Member
Posted 1 year ago #
Sorry, just to clarify, the Blog (or HOME) page is not even in the Page options. I assume this is something in the code? I can not edit this page at all, so I am assuming it is in the code? Thanks again.
makanmehr
Member
Posted 1 year ago #
hi.
it seems you solve your problem. I have the exact same problem.
how you did it? :)
regards.
Hi I had the same problem and some one pointed me at this article
http://codex.wordpress.org/Creating_a_Static_Front_Page
With this you can make any page your home page and call the list of post a different name such as blog/news
hope that is what you are after.
makanmehr
Member
Posted 1 year ago #
Rizqi Djamaluddin
Member
Posted 1 year ago #
That works, but can someone please explain what a raw query_posts() looks like to just get the basic list-of-posts loop? Calling it with just posts_per_page achieves the basic effect, but posts_nav_link() doesn't work.
Rizqi Djamaluddin
Member
Posted 1 year ago #
Ok, I worked out how to get my answer. In case anyone needs it: The global $query_string has the queries used for the loop by default. Links created with posts_nav_link() will add a paged parameter in the $query_string. So doing a query_posts() with the $query_string will do the trick correctly. However, if the loop is on a page, it will also have a pagename parameter that tells the loop to only render the page contents. We can override that parameter by setting it blank.
So by doing a query_posts($query_string . '&pagename=&posts_per_page=4') we can recreate a list of posts like on the default front page. Check the extra options for query_posts for more options.
I love this solution as it gives a lot of flexibility, but I still feel there's probably a more elegant way of doing it.