Alkorr
Forum Replies Created
-
Forum: Plugins
In reply to: Show second last post from 3 categoriesHi, anyone, any suggestion how to make it work? Thanks! 🙂
Forum: Plugins
In reply to: Do not duplicate post covering 2 queriesThanks alchymyth, talk to you again soon (or maybe not so soon ahah) 🙂
Forum: Plugins
In reply to: Do not duplicate post covering 2 queriesAWESOME! Thank you so much for your patience and the time you spent on the code, alchymyth! What you have done is fantastic, really.
It works perfectly now, I have nothing more to ask and I will mark this thread as ‘resolved’. Many people struggle making multiples loops work together and this is great that some people like you give a hand to people like me on this forum.
Again, thank you very much alchymyth! 🙂
Forum: Plugins
In reply to: Do not duplicate post covering 2 queriesOk, sure alchymyth, no problem. Thanks a lot! 🙂
Forum: Plugins
In reply to: Do not duplicate post covering 2 queriesI pasted the full code of my index.php, the first loop was in the header, so now I moved it to my index.php so you can see my full template, all the three loops and the HTML code.
Code here: http://pastebin.com/Fq8c4xE4
If I forgot to modify something, sorry. I’m currently paying a lot of attention to the code you just posted in your previous message to better understand how multiple loops work together.
I’m learning with great attention to what you say!
Forum: Plugins
In reply to: Do not duplicate post covering 2 queriesFor the moment I focus on the loops so the HTML is quite simple.
I pasted my index.php code here : http://pastebin.com/vpHLd1mW
Forum: Plugins
In reply to: Do not duplicate post covering 2 queriesHi Alchymyth, thanks, I modified my code but I still got the same problem: if I don’t show any sticky, then the same posts are showing in my 1st and 2nd loop. Even with the code you provided.
Plus now I get an error:
-
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /alkorr/www/blog/wp-content/themes/v1/index.php on line 19
The code is so intertwined… 😉
Forum: Plugins
In reply to: Do not duplicate post covering 2 queriesFull code here: http://pastebin.com/BGc1sGap 🙂
Forum: Plugins
In reply to: Do not duplicate post covering 2 queriesSure thing, here: http://pastebin.com/hUwFzPj9
(love Pastebin BTW)
Forum: Plugins
In reply to: Do not duplicate post covering 2 queriesMaybe one last thing while I’m checking if everyting is working fine. If in the first loop, if I decide to show the last 3 posts (just like in the second loop) then these posts are the exact same ones as in the second loop.
But with the no_duplicate check, they shouldn’t right? If I call the 3 latest posts in both loop, once the 3 latests posts are called in the first loop, then the 3 from the second loop can’t be duplicates. But apparently they are…
I’m just asking because I just un-sticky the posts and by default the 3 latest posts are displayed in the first loop. If you don’t see why then it’s fine and I will close the topic 😉
Thanks again alchymyth!
Forum: Plugins
In reply to: Do not duplicate post covering 2 queriesOMG!! You made my day alchymyth, I think it works perfectly now!!
I’m so happy I can finally do what I REALLY want! Without your help I would still be stuck so thank you very much! This blog I’m working on is a personal project and I want it to be perfect and now it is! I’m so happy, thank you so much for your patience!! 🙂
And I’m sure this code will help many other people like me using multiple loops. Thanks again!
Forum: Plugins
In reply to: Do not duplicate post covering 2 queriesNo prob, done! http://pastebin.com/wQ7C8Ex2
Forum: Plugins
In reply to: Do not duplicate post covering 2 queriesI pasted the full code of the third loop here: http://pastebin.com/7Jrssy5X
I made the change you suggested but it didn’t change anything.
Also the posts are not anymore classified by Category (Alphabetically) but by date. Maybe this is the problem here and it explains why the post about a movies is showing instead of a post about games, and so on…
Hope it helps! 🙂
Forum: Plugins
In reply to: Do not duplicate post covering 2 queriesHi alchymyth! Nope, they are only in one category, no duplicates, no sticky so far so it works fine. But now, instead of showing:
-
Post title: Review of Halo
Category: GamesPost title: Review of RED
Category: MoviesIt shows:
-
Post title: Review of RED
Category: GamesPost title: Review of Halo
Category: MoviesI looked at the code and I don’t understand why the post is not from the right category. Do you have an idea of what the problem might be?
Thanks! 🙂
Forum: Plugins
In reply to: Do not duplicate post covering 2 queriesGreat, it seems to work! But there is a little problem: on the third loop, the latest post from each category doesn’t come from the good category. For example: the review of game appears in the category Movies, and so on. It worked fine with the old code so maybe what you changed had a side effect?
Apparently it’s working fine so far, now I only have to see the third loop working to tell you if it’s perfect 🙂
Again, thanks a lot…