222 reputation
39
bio website
location Bucharest, Romania
age 29
visits member for 2 years, 5 months
seen 4 hours ago

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.
Aug
2
comment sticky post in custom loop
I'm using twentyeleven so yes they are enabled.
Aug
2
asked sticky post in custom loop
Jul
31
comment get page title, url and excerpt of a page
I didn't used a loop for this, would it made any real difference - performance wise - if I use a loop with this code or not?
Jul
31
revised get page title, url and excerpt of a page
added 671 characters in body
Jul
31
comment get page title, url and excerpt of a page
Thanks for helping! I will update my post with the complete code that solves the problem.
Jul
31
accepted get page title, url and excerpt of a page
Jul
31
asked get page title, url and excerpt of a page
Jul
30
comment Different 'read more' links
It works, thanks for helping!
Jul
30
accepted Different 'read more' links