Alkorr
Forum Replies Created
-
Forum: Plugins
In reply to: Do not duplicate post covering 2 queriesSure, here is the link: http://pastebin.com/diYiFYMD
I hope it will help you. I don’t see what I am doing wrong…
Thanks 😉
Forum: Plugins
In reply to: Do not duplicate post covering 2 queriesHi alchymyth! Thanks, this code looks very helpful and I’m trying to replace my actual code with it. But I’m already stuck: in the first loop, how do I do to exclude all sticky posts?
My query uses:
‘post__not_in’ => get_option( ‘sticky_posts’ )
I don’t know how to make it work within your loop. I tried some code from the Codex but it shows sticky posts and doesn’t exclude them from the loop… I feel dumb for asking, sorry, but I’m learning 😉
Thanks!
Forum: Plugins
In reply to: Do not duplicate post covering 2 queriesHi! It’s been 2 months now I asked for help in this forum and since then I worked on a solution but I couldn’t make it work neither…..
I changed the query and added:
$args=array( 'posts_per_page' => 1, 'post__not_in' => $do_not_duplicate, 'post__not_in' => get_option( 'sticky_posts' ), 'category__in' => array($category->term_id),But I still get duplicates because I have another query on my page, a different one, and the same post is showing twice…
Any help would be so great, thanks a lot! 🙂
Forum: Fixing WordPress
In reply to: Showing Category Description in wp_list_categoriesHi there! Still no clue? 🙂
Forum: Hacks
In reply to: How to remove first image from the_content?Hi vinay! This code is amazing!! No need for to call a function, your code only is enough to do exactly what I want… Thank you so much for your help! 🙂
Hi biralucena! Thanks for the tip, it works great although I can only ‘unselect’ either ‘Post’ or ‘Page’ but not both of them.
Let’s say it’s better than nothing, thanks you all for your help! 🙂
Forum: Hacks
In reply to: How to remove first image from the_content?Hi chaseman, thanks but using get_the_content function does the same as the_content. I’m using it on single.php.
I searched again today and I can’t find a way to get ride of the first image in the_content.
Still looking…
Forum: Plugins
In reply to: Do not duplicate post covering 2 queriesAny idea? 🙂
Forum: Fixing WordPress
In reply to: Only one posts of each category on the home pageOk. Now I’m using the code provided by MichaelH on this thread. Thanks to you alchymyth there no more duplicated posts in the list but I’m still trying to display the categories not in alphabetical order but showing first the categories recently updated. And also to exclude a category from the list.
Still looking for a way to achieve that, I’m reading the Codex (again).
Meanwhile if anoyne has an idea, it’s welcome, thanks! 🙂
Forum: Themes and Templates
In reply to: How to add four WP Queries without duplicate postsOMG it works!! Thank you so much alchymyth. You made my day! 🙂
Forum: Themes and Templates
In reply to: How to add four WP Queries without duplicate postsHi there, alchymyth! I tried to use this function but it doesn’t work for me. I’m using the code provided by MichaelH on this thread (displaying 5 latest post title on the main content) and my goal is that if an article is posted in two categories (Books + Movies), then once it is displayed on the first one (Books), then on the second one (Movies), it won’t show; the next article from that category will be displayed instead.
I’m not good at PHP, nothing new here but I always search and try everything I can. Now I’m stuck…
Thanks for you help!
Forum: Fixing WordPress
In reply to: Only one posts of each category on the home pageOk alchymyth, I will try that.
Thanks again! 🙂
Forum: Fixing WordPress
In reply to: Only one posts of each category on the home pageHi alchymyth, thanks a lot! 🙂
Now I try to display the categories not in alphabetical order but showing first the categories recently updated. As of now, my first alphabetical category has the oldest published post so it’s not very appealing for my reader. I tried to use orderby=date but then nothing is showing anymore.
I also tried to exclude a category from the list using ‘category__not_in’ => -34, but it didn’t change anything, the category I want to exclude is still showing… Maybe you have an idea why it’s not working?
Thanks a lot for your help alchymyth! 🙂
Forum: Fixing WordPress
In reply to: Only one posts of each category on the home pageHi never_stop, I’m looking for the same code with no success either…
alchymyth, the code on the page you provide doesn’t work for me. I get the name of each category but the excerpt is always the same one from the latest post from the first category…
I of course checked the Codex but I didn’t find anything about getting the last post from each category.
Any idea how we could do that? Thanks! 🙂
Forum: Plugins
In reply to: The sticky posts to integrate with the normal postsNo idea how I can do that? I searched again and I didn’t find anything working properly… Help is more than welcome, thanks! 🙂