244 reputation
113
bio website
location
age
visits member for 2 years, 9 months
seen yesterday

Wordpress NSIS PHP jQuery HTML CSS


Aug
4
comment If User is NOT Logged in and Page ID is not 6 - Redirect to Login
Just had a light bulb moment. As this script is being run in the header, does it even know what pageid 6 is?
Aug
4
comment If User is NOT Logged in and Page ID is not 6 - Redirect to Login
I have tried it there already, it made no difference. Really confused
Aug
4
comment If User is NOT Logged in and Page ID is not 6 - Redirect to Login
The first rule works correctly - The Second Rule Prevents Anybody From Logging In - the Third Rule Works Correctly
Aug
4
comment If User is NOT Logged in and Page ID is not 6 - Redirect to Login
I did but there is still no change. I have updated my original post again with some details on where this is running from in the page, maybe that might help?
Aug
4
comment If User is NOT Logged in and Page ID is not 6 - Redirect to Login
Yep, page is published and live
Aug
4
comment If User is NOT Logged in and Page ID is not 6 - Redirect to Login
Good point, I have changed it again but it is still not working as expected. I have updated my original post with my current code
Aug
4
comment If User is NOT Logged in and Page ID is not 6 - Redirect to Login
Hi,I have tried amending things but it still isn't working for me. Curiously, any page on my site that has the number 6 anywhere in the title is also blank. Connected?
Apr
29
comment Hide plugin dashboard menu item for specific roles
Much better way of doing it, thanks for the pointers
Apr
21
comment Use 'get' form action within a WordPress plugin admin page
Yep, that does work. Thanks for that!
Mar
3
comment Image editor not working correctly
I am already monitoring my error log and WordPress debug settings, nothing out of the ordinary. This is happening with a fresh install as well on a different server.
Jan
10
comment Confused by $wpdb->prepare
It is a paypal transaction ID that is returned
Oct
18
comment Use theme folder instead of plugins_url
Thanks, that did it
Oct
5
comment Use image url with add_image_size
I have updated the original post to try and better explain the question
Oct
5
comment Use image url with add_image_size
Correct, add_image_size adds a size for WordPress to use. I now want to output an image at that size by its WordPress URL. Make sense?
Jul
23
comment Custom Post Type archive giving 404
Yep tried that, still nothing
May
23
comment get_page_by_title not working when used with a variable
On testing I can see that it works fine unless the title has a dash, then it fails. Could it be something to do with special characters?
May
23
comment get_page_by_title not working when used with a variable
I've just tried with var_dump and I am getting NULL. So does that look like its not finding the post?
May
21
comment Display custom field if it exists and has a specific value
Hi rob, with the first line, if mycustomvalue doesn't exist then won't it display a notice to that effect?
May
21
comment Display custom field if it exists and has a specific value
the_title was just being used as an example of some content being returned, I am not actually using the_title
May
7
comment Sort get_users by custom field
Thanks for the detailed answer, i'm sure your method is sound but in implementing it has thrown up another issue. I have edited the original question to reflect