virtuexru
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: ‘post__not_in’ variable for wp_query does not work..So it’s just me that has this problem I’m assuming? ??
Forum: Fixing WordPress
In reply to: ‘post__not_in’ variable for wp_query does not work..Still doesn’t work. I tried your exact code MichaelH and I still got my sticky post showing up. I even tried it with non sticky posts, still showing. Here is my code:
$args_fp = array( 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => -1, 'post__not_in' => array(343, 493, 166), 'caller_get_posts'=> 1 ); $fp_query = null; $fp_query = new WP_Query($args_fp); while ($fp_query->have_posts()) : $fp_query->the_post(); update_post_caches($posts); $preview = get_post_meta($post->ID, 'preview', true); $count++; ?> <br />[<b>ARTICLE:</b> <?=$post->ID;?> <?php the_title(); ?>]<br /> <? endwhile;
Forum: Fixing WordPress
In reply to: ‘post__not_in’ variable for wp_query does not work..I’m sorry I forgot to add that the posts I am trying to not include in the query are sticky posts, not just regular posts.
Forum: Fixing WordPress
In reply to: ‘post__not_in’ variable for wp_query does not work..That does not work either. I have tried everything. (By the way, post 343 is a sticky post) Assigned a variable, directly placing the array, etc, nothing works, the article still shows up in the query which leads me to believe that the ‘post__not_in’ parameter is NOT working correctly.
Other people are also having this issue:
https://osdir.com/ml/wp-trac/2010-04/msg02482.htmlForum: Fixing WordPress
In reply to: ‘post__not_in’ variable for wp_query does not work..$args_fp = array( 'post__not_in' => 343, 'posts_per_page' => 8 ); $my_query_fp = new WP_Query($args_fp); while ($my_query_fp->have_posts()) : $my_query_fp->the_post(); update_post_caches($posts); $preview = get_post_meta($post->ID, 'preview', true); $count++; echo "post id: ".$post-ID."<br />"; endwhile;
It does not work. Trust me. 343 is the post ID for the sticky post I do not want to be queried. It comes up in the results of the while loop.
Forum: Fixing WordPress
In reply to: ‘post__not_in’ variable for wp_query does not work..Shameless bump, would really like some help finding a workaround. Pretty much this is what I am doing: Creating two loops (one to output one sticky post at the top of the home page to span two columns, one to show the other 8 entries (2 per row, 4 rows)) to separate sticky post from article’s loop. This way, the second page isn’t short a story or showing duplicates.
Forum: Your WordPress
In reply to: We need your criticisms! Beat us up!Thank you all for making the site a better place!
Forum: Fixing WordPress
In reply to: Citing news sources?I know but for big sites, like PrisonPlanet.tv and tons of other blogs, I’m assuming its not OK to even summarize the article yourself and have a couple of excerpts?
It’s not like I’m not sourcing them…
Forum: Fixing WordPress
In reply to: Citing news sources? Help!!United States.
I see a lot of other sites doing it (such as InformationLiberation.com and PrisonPlanet.tv).
Forum: Your WordPress
In reply to: We need your criticisms! Beat us up!Quick update. Made it WAP/Mobile Phone supportive.
Forum: Fixing WordPress
In reply to: Registration emails not working.This is really bothering me, I’m really trying to figure out the problem. here is a list of plugins I use:
1. Feedburner Feed Replacement
2. Google Sitemaps
3. Lightbox JS v2.2 Plugin
4. Share This
5. Subscribe To Comments
6. Tiger Style Administration
7. WordPress Database Backup
8. WordPress Video Plugin
9. WP-PollsForum: Your WordPress
In reply to: We need your criticisms! Beat us up!Thanks for all the replies. I updated the site to reflect some of the opinions posted on here!
Forum: Fixing WordPress
In reply to: Registration emails not working.Anyone?
Forum: Themes and Templates
In reply to: Blue Zinfadel theme – need help.Anyone?
Forum: Your WordPress
In reply to: We need your criticisms! Beat us up!nevermind! found it, just had to do <–!more–> in the post area.