201 reputation
29
bio website
location Bucharest, Romania
age 29
visits member for 2 years, 2 months
seen 16 hours ago

Aug
13
accepted posts_nav_link() not working on index.php
Aug
13
comment posts_nav_link() not working on index.php
It worked, thanks! I really appreciate your help!
Aug
13
comment posts_nav_link() not working on index.php
That's exactly what I did but I still see the posts from the category with ID 41.
Aug
13
comment posts_nav_link() not working on index.php
Thanks, do I need to call the add_action( 'pre_get_posts', 'wpse61695_exclude_cat' ); somewhere in my index.php? I'm asking this because the posts from category ID 41 are still showing up on my homepage.
Aug
13
comment posts_nav_link() not working on index.php
OK, I'll try to do it with pre_get_post - now reading about how to implement it. Thanks!
Aug
13
comment posts_nav_link() not working on index.php
Thanks for the answer amit. I've added the get_query_var( 'page' ) to the wp_query but it's still not working. I've also tried it without the cat=-41 but I got the same behavior.
Aug
13
asked posts_nav_link() not working on index.php
Aug
13
awarded  Tumbleweed
Aug
10
asked Pre-install widgets in WP-Admin
Aug
6
asked Comments from vbulletin topic
Aug
5
comment sticky post in custom loop
Thanks, I'll try it with a tag - seems easier.
Aug
4
revised sticky post in custom loop
deleted 88 characters in body
Aug
4
comment sticky post in custom loop
I want to show the latest 2 posts from category 'events' and if one post from that category is sticky, I want it to be shown first. I don't get it why is this so hard to accomplish on wordpress...
Aug
4
revised sticky post in custom loop
added 99 characters in body
Aug
4
comment sticky post in custom loop
If I include 'post__in' => get_option('sticky_posts') in the wp_query array the sticky post is shown but it doesn't list the next post in the category. Only the sticky posts appears on the page.
Aug
2
comment sticky post in custom loop
I've changed them to a,b,c but it's the same. Could it be something wrong with the whole wp setup? I'll have to try the same code on a different machine.
Aug
2
awarded  Commentator
Aug
2
comment sticky post in custom loop
Thanks for the detailed explanations! I removed the query_posts, did a var_dump() and got a valid output. I've also added the 'ignore_sticky_posts' argument but it's still not working. I've even removed the get_template part and tried it with the_title() and the_content() but it was the same output. I've also included in the main post two pastebin links to the homepage.php and content-events.php.
Aug
2
revised sticky post in custom loop
added 248 characters in body
Aug
2
comment sticky post in custom loop
The post that is set as sticky in dashboard doesn't stick on the first page, it's getting replaced by the latest normal post.