virtuexru
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Question about wp_dropdown_users()..It’s Friday, maybe I’ll get lucky?!
Forum: Fixing WordPress
In reply to: Question about wp_dropdown_users()..Last shameless bump for help!
Forum: Fixing WordPress
In reply to: Question about wp_dropdown_users()..Anyone have experience using this function?
Forum: Fixing WordPress
In reply to: Question about wp_dropdown_users()..Shameless bump for help! ??
Forum: Fixing WordPress
In reply to: How to run a filter only on admin pages?Awesome, such a simple solution, totally forgot about the is_admin() function. Thank you!
Forum: Fixing WordPress
In reply to: How can I go about stripping non-ASCII characters from permalinks?Found a fix, have to hook into the sanitize_title to clean the permalink up.
add_action('sanitize_title', 'strip_weird_permalink', 1, 1);
Forum: Fixing WordPress
In reply to: How can I go about stripping non-ASCII characters from permalinks?Any ideas? Thanks in advance!
Forum: Fixing WordPress
In reply to: How can I go about stripping non-ASCII characters from permalinks?Should I be filtering
post_link
instead? How can I denote whether or not the user is in an administration page? I just want to filter out non-ASCII characters when editing the permalink on the backend.Forum: Fixing WordPress
In reply to: ‘post__not_in’ variable for wp_query does not work..@vtxyzzy – If it’s a filter in some other plugin I’m going to have to look through about 45 plugins :\. Is there any way to just make sure the query is being started from scratch? wp_reset_query?
Forum: Fixing WordPress
In reply to: ‘post__not_in’ variable for wp_query does not work..@vtxyzzy – That’s what I did, echoing out wp_query gave nothing so I used fp_query instead.
Forum: Fixing WordPress
In reply to: ‘post__not_in’ variable for wp_query does not work..Looks almost identical:
REQUEST: SELECT SQL_CALC_FOUND_ROWS wp_16_posts.* FROM wp_16_posts WHERE 1=1 AND wp_16_posts.ID NOT IN (261,209) AND wp_16_posts.ID NOT IN ( SELECT tr.object_id FROM wp_16_term_relationships AS tr INNER JOIN wp_16_term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy = ‘category’ AND tt.term_id IN (‘4’, ‘0’, ‘0’) ) AND wp_16_posts.post_type = ‘post’ AND (wp_16_posts.post_status = ‘publish’) ORDER BY wp_16_posts.post_date DESC LIMIT 0, 8
Forum: Fixing WordPress
In reply to: ‘post__not_in’ variable for wp_query does not work..I have another query on the page but it’s just to get 1 sticky post:
global $post; $sticky = get_option('sticky_posts'); $args = array( 'posts_per_page' => 1, 'post__in' => $sticky, 'caller_get_posts' => 1 ); $my_query = null; $my_query = new WP_Query($args);
Forum: Fixing WordPress
In reply to: ‘post__not_in’ variable for wp_query does not work..Well my current query is this:
$args_fp = array( 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => 8, 'post__not_in' => array(343, 206), 'caller_get_posts'=> 1 ); $fp_query = null; $fp_query = new WP_Query($args_fp);
Forum: Fixing WordPress
In reply to: ‘post__not_in’ variable for wp_query does not work..@vtxyzzy – Here you go, it should be posts 343 and 206 that are excluded but it looks like it’s excluding some other posts.
REQUEST: SELECT SQL_CALC_FOUND_ROWS wp_16_posts.* FROM wp_16_posts WHERE 1=1 AND wp_16_posts.ID NOT IN (261,209) AND wp_16_posts.ID NOT IN ( SELECT tr.object_id FROM wp_16_term_relationships AS tr INNER JOIN wp_16_term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy = ‘category’ AND tt.term_id IN (‘4’, ‘0’, ‘0’) ) AND wp_16_posts.post_type = ‘post’ AND (wp_16_posts.post_status = ‘publish’) ORDER BY wp_16_posts.post_date DESC LIMIT 0, 8
Forum: Fixing WordPress
In reply to: ‘post__not_in’ variable for wp_query does not work..@vtxyzzy – Just tried it. Same result. This is so frustrating I want to pull my hair out!