4,907 reputation
321
bio website
location
age
visits member for 1 year, 3 months
seen 16 hours ago
stats profile views 294

I sell sea shells by the sea shore.


Jan
23
asked Preserving $_GET parameter while using custom Rewrite Rule
Jan
23
revised Add Commas Between Menu Items?
added 7 characters in body
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
answered strange space between lines
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.