1,218 reputation
633
bio website rainrain.com
location
age
visits member for 3 years, 11 months
seen 2 days ago

Nov
5
comment Associate Posts with individual user - hide from other members
Doesn't WordPress start numbering author ID's from 1? What about author ID = 0 or could WordPress end up using that?
Nov
5
accepted Associate Posts with individual user - hide from other members
Nov
5
comment Associate Posts with individual user - hide from other members
If I've understood the WP_query page properly then set('author', -1) would display all authors except author id=1 ... so I tried $query->set( 'author_name', 'thisauthordoesnotexist' ); ... which seems to work, but I hope there's a better way of setting wordpress to display no posts. Would you know of one.
Nov
5
comment Associate Posts with individual user - hide from other members
It's still returning the page if the user is not logged in. It's like as if '$query->set( 'author', -1 );' is having no effect for some reason.
Nov
5
comment Associate Posts with individual user - hide from other members
Oh I see, sorry. I will try it out.
Nov
4
comment Associate Posts with individual user - hide from other members
No I think you might be understanding me correctly all right and I might have a go at trying to get the above working (thanks for that) but still wouldn't this still leave the individual posts open to anyone who could get the the url. I mean if I know the id of a post is it not possible to view it even if I'm not the owner. As far as I can see we are only limiting whats shown in the query but I'd need the material to be inaccessible to anyone but the originator. Maybe I have a fundamental hole in my WordPress understanding here. I am not very good on security to be honest.
Nov
2
asked Associate Posts with individual user - hide from other members
Oct
31
accepted Get first image in a post
Oct
27
awarded  Popular Question
Oct
21
awarded  Popular Question
Aug
27
answered Use menus with anchors
Aug
27
asked Use menus with anchors
Aug
27
revised Meta box dropdown of custom posts
edited title
Aug
21
awarded  Popular Question
Jul
29
comment Wordpress Export Import Site Navigation Menu
Thanks. No I just wanted to clarify whether there was some way to include it any why it was missing.
Jul
3
accepted Keep sticky posts out of query unless they have featured image
Jun
14
awarded  Yearling
May
23
comment Metadata for a taxonomy - is there any WordPress way of doing this?
actually it's been a while since I looked at the way wordpress does that - I don't think it used javascript like that last time I looked at it, thanks for pointing that out to me. As I said above I found I was able to get what I wanted using the advanced custom fields plugin
May
23
accepted Metadata for a taxonomy - is there any WordPress way of doing this?
May
23
comment Metadata for a taxonomy - is there any WordPress way of doing this?
Actually I found a solution to my problem using the advanced custom fields plugin but I will accept this as it seems a pretty good link.