• I have searched all through the codex and forums and haven’t found anything that refers to what I’m trying to do. I’ve tried experimenting and I’m getting very ODD results.

    What I want to do: I want the content that is currently index.php (the newest posts) on a different page. In my theme I copied the content of index.php and put it into a new template and named it “Journal”. I create a new Page (also named Journal, confusingly enough) and assign to it the template Journal.

    And what I get… is very weird! This is the result: https://lunardreams.net/pets/journal/
    this is what it should look like:
    https://www.lunardreams.net/pets/
    I tried using the tips and instructions I found in the codex for multiple loops, and at one point I got something ALMOST correct, but it wasn’t displaying all the data.

    Why isn’t the loop working in that template?? And what can I do to convince it to function properly? I really can’t see what I’m missing here.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You have custom permalinks enabled and the htaccess file is interpreting “journal” as part of that category structure.

    In other words, you have “journal” where “categories” is supposed to be in your permalink setup – compare the URL structure of:

    https://lunardreams.net/pets/journal/
    https://lunardreams.net/pets/categories/uncategorized/

    Also, since your blog is installed in /pets not /pets/journal, it’s going to go looking for the theme files, config files, etc. in the /pets directory instead of /pets/journal.

    Best suggestion – just install WordPress in /pets/journal if that is where you want it.

    Thread Starter lunarmagic

    (@lunarmagic)

    I don’t see why the permalinks would change anything, I didn’t put that in manually, that’s the name of the page. The design is all working flawlessly, it’s the post data that’s not showing up.

    To illustrate, I turned permalinks off. Here’s the page:
    https://lunardreams.net/pets/?page_id=17

    I just want that page to show the most recent entries, like the index.php page is. I don’t want the whole journal in a seperate folder. I just want index.php to be named something different.

    Thread Starter lunarmagic

    (@lunarmagic)

    I’ve determined it’s a loop thing – the page is considered the loop, not the post entries, not sure why I didn’t notice that before. I added this:

    query_posts(‘showposts=10’);

    So now on the page it’s displaying the most recent 10 entries…. but it’s only showing either ALL the content (more included) or, when I give TRUE as a second parameter to the_content it’s only showing the content after the more, if there is one. That’s really weird. The posts that don’t have a more tag in them aren’t displaying any content at all. Anyone know what’s up with that? I just want it to display up to the More tag and then a link to the more.

    The reason I don’t want to move all of it into /journal/ is because then all the pages would be /journal/about/ which isn’t what I want.

    Thread Starter lunarmagic

    (@lunarmagic)

    I finally found what I was looking for! Here in this post:
    https://www.ads-software.com/support/topic/21208/page/3#post-220993

    Worked perfectly, did exactly what I wanted. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Index on different page’ is closed to new replies.