Reputation
8,454
Next privilege 10,000 Rep.
Access moderator tools
Badges
13 33
Newest
 Proofreader
Impact
~358k people reached

Jan
23
answered Outputting results from select box option in options panel
Jan
23
comment Outputting results from select box option in options panel
Is that your full code? You are not printing your $output you are only storing it in a variable. If it is echo your result instead. Also, keep your else if together like elseif otherwise it can break if you ever use that syntax style without curly braces.
Jan
23
answered Add Commas Between Menu Items?
Jan
22
comment Is it possible to get a user with just the password field?
Very very bad man
Jan
21
comment AJAX function needed (toggle text)
api.jquery.com/slideToggle ...also your question would be better served over at StackOverflow as this relates to JavaScript/jQuery.
Jan
18
comment Taxonomy/Custom post type structure suggestion on a movie site
@TomJNowell I agree with this point concerning P2P plugin, the need to have an additional API layered upon what's already available to us. I faced the same problem, I first wanted to create a solution that could be reasonably managed with the existing structure of the WP API before adding another mechanism (P2P) on top because it can actually add an extra layer of confusion. Data portability/flexibility is important to me which is why I still store (what some might call a waste of space) duplicate information in post meta that's already held in taxonomies in-case I want re-structure.
Jan
18
answered Taxonomy/Custom post type structure suggestion on a movie site
Jan
18
awarded  Informed
Jan
7
comment How do I check if a post is private?
@kaiser True, nicer to use the function, but another question for you; since we already used get_page_by_path() we have access to post_status held in our $status variable. Is it not inefficient to then be running get_post_status() which has to hit the DB again using get_post()? Still, added your suggestion to answer. Thanks for that :)
Jan
7
revised How do I check if a post is private?
added 190 characters in body
Jan
7
revised How do I check if a post is private?
added 1070 characters in body
Jan
7
comment How do I check if a post is private?
Change $slug = $wp_query->query_vars['name']; to $slug = $wp_query->query['pagename']; ... that should resolve your issue. (see my edit above for further explanation)
Jan
7
revised How do I check if a post is private?
added 1070 characters in body
Jan
6
comment How to get functions.php to talk to options.php
Is your function convert_RGA_HSV accessible to your set_HSV function? Check by dumping the $varhsv variable. If you don't need add_option's extra parameters then its also OK to use update_option which will create the option if it does not exist and or update the option if it already exists. Syntax: update_option( $option, $new_value );
Jan
6
comment How to get functions.php to talk to options.php
Is $varcolour = of_get_option('custom_colour'); actually set before you are trying to retrieve it?
Jan
6
comment How to prevent deleting of comments when deleting a post
+1 for showing both methodologies, nice!
Jan
6
comment How do I check if a post is private?
...example shown using get_page_by_path() is set to the 'post' post_type. You'd need to change that to 'page' if you are working with a 'page' post_type and so on. Once we know more about your permalink structure (that's been created under the conditions/influence of that plugin) we'll be able to ascertain what specifically we can use to help you.
Jan
6
comment How do I check if a post is private?
If you know the ID ahead of time then yes, which you could pass along in your query_vars or what would be simpler is to see what already exists within your query_vars for us to use (hence which is what the above method is doing). So if you can do, var_dump($wp_query); so we can see what is held in the global variable $wp_query for that page users are landing on (then copy your output to pastebin.com) so I can inspect the results so we get this working for you. Also when you say "pages" do you mean "page" or "post" because they are two different post types and the... (cont)
Jan
5
answered How do I check if a post is private?
Jan
3
comment Best way to initiate a class in a WP plugin?
@bueltge Thanks for the link, shall read. Looks like a good discussion!