robRalston1
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7 - Campaign Monitor Addon] Client ID Or Client Secret?Ah cool, thats right. Cheers for posting.
Forum: Plugins
In reply to: [Contact Form 7 - Campaign Monitor Addon] Client ID Or Client Secret?hey, I did manage to find the correct Client ID. Sorry but I don;t remember now. But I don’t think it I had to create and app. Sorry I cant be of more help.
Forum: Plugins
In reply to: [WooCommerce] Customizing woocommerce: Request a quote.kchayka, my site will be having variable products, did you manage to come up with something for that? If you have I would very much like to hear more about it. ??
let me know thanks.
Forum: Plugins
In reply to: [WooCommerce] Customizing woocommerce: Request a quote.Hi,
Did you get anywhere with this? I’m looking for something similar?
thanks
Forum: Plugins
In reply to: [LightPress Lightbox] Lightbox not vertically centered?Yeah, its strange. I’ve had a little poke around but can’t seem to work out why it pushes the images down 28px on first load. I don’t think I’d notice if the images had different heights.
let me know if you sus it.
cheers
Forum: Plugins
In reply to: [LightPress Lightbox] Lightbox not vertically centered?It seems to be moving up 28px when you got through the slide show?? that the height of the wordpress admin bar.
cheers
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Error when adding new user.Thanks so much for helping me out! your advice work.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Error when adding new user.Sorry but any word when this issue will be fixed? thanks Mikko
I get those warnings when I try to add a new user. I have a function which creates a new post when a new user is created. the functions below. maybe this is causing the issue?
any ideas?
function newProfilePost($user_id){ $the_user = get_userdata($user_id); $new_user_name = $the_user->first_name . ' ' . $the_user->last_name; $my_post = array(); $my_post['post_title'] = $new_user_name; $my_post['post_type'] = 'people'; $my_post['post_content'] = 'Please write your bio information before publishing.'; $my_post['post_status'] = 'draft'; $my_post['post_author'] = $user_id; wp_insert_post( $my_post ); } add_action('user_register', 'newProfilePost');
thanks
I changed it to the following and it seems to work now.
add_filter('relevanssi_post_ok', 'customfield_ok_test', 10, 2); function customfield_ok_test($post_ok, $post_id) { $post_status = get_post_status($post_id); $access = get_post_meta($post_id, 'access', true); if ($access == 'private' && !is_user_logged_in() && !$post_status == 'draft') $post_ok = false; if ($access == 'private' && is_user_logged_in() && !$post_status == 'draft') $post_ok = true; if ($access == 'public') $post_ok = true; return $post_ok; }
Is there a better way to do this?
Again thankyou for your time!
Hmmm no sorry draft post are still coming up in my search results for all logged in members.
I appreciated your help
Sorry just one more thing, could this now be causing “Draft” post showing up in search results? thanks
Damn! you’ve done it! Thank you so much! really appreciate your support on this.
now I can use this awesome plugin! cheersHmm, thanks so much for your help. but the private posts still show up in the search results.?
Thanks for the reply.
I’ve had a look at your to links but i’m not able to write a function myself.
If anyone knows how to filter by custom post types please paste examples here.
I need it to filter only ‘public’ post if user is NOT logged in and both ‘public’ and ‘private’
if they are. I have a custom field call access with two option.thanks for your help people.
Forum: Fixing WordPress
In reply to: User Role Changes Not Honored in loop.phpHi,
Just wondering if you used this for your front-page also? as in if the user wasn’t logged in they wouldnt see any post marked private in the the loop?
thanks