174 reputation
8
bio website
location
age
visits member for 3 years, 10 months
seen Apr 14 at 8:22

Jan
15
comment Password protected page with a limited number of logins
Without digging through the core files I wouldn't know the hook you'd need, but I'd look for a hook and collect the users IP each time. Then you could block them from trying that page?
Jan
15
comment How to translate menu items?
I recently wrote code which switched between two different menus depending on the language the user was browsing in. It wasn't that easy! A plugin might help, but I couldn't recommend one from experience. I know WPML is popular, might do what you need...
Jan
15
answered Can not get shortcode content in function
Jan
15
answered list custom taxonomy with count
Jan
15
comment How to add active state to the navigation links?
You will probably need to change your CSS selectors to work with the HTML that Wordpress makes for you. Normally the <ul> element has a class of "menu", not an id like your code example.
Jan
14
comment How to add active state to the navigation links?
Why don't you just use the wp_nav_menu() function instead of manually making your menu?
Jan
13
comment How to query for the first 5 elements published?
What do you get at the moment? Looks like your posts_per_page argument is set to all (-1) not 5...
Jan
13
answered How to add active state to the navigation links?
Dec
21
comment WP_Query with UNIX timestamp in meta query
Argh! As it turned out, the missing post was set as scheduled. I'm using the "fakerpress" plugin which generates dummy content, and I assume I picked a date range which meant some of the posts were scheduled to be published in the future. It's always an absolute pain to fall over such easy mistakes!! Thanks for your help.
Dec
20
comment How to use taxonomy term as a value of get_template_part?
You'd need to pass your post id and your custom taxonomy. print_r() the results and see what you get.
Dec
20
comment WP_Query with UNIX timestamp in meta query
@bonger Yes, I've done this query, it returns 3 results. 2 are older, and 1 is in the future. It's very odd, if the compare arg is "<" it returns two results, but it it's set to ">" it returns nothing!
Dec
20
answered How to use taxonomy term as a value of get_template_part?
Dec
20
comment Fully editable footer
I think widgets are definitely the way to go. Loads of control and a simple user interface.
Dec
20
asked WP_Query with UNIX timestamp in meta query
Dec
10
comment Options for an SEO gallery?
As far as SEO and images is concerned, changing to another gallery shouldn't make too much of a difference providing it uses the same title and alt attributes on the images. The HTML markup for image descriptions could vary, depending on whether or not your theme uses HTML5. If you want a gallery that maintains image proportions, you could find a plugin which has a "masonry" style layout. I can't recommend any, but it might be a starting place.
Dec
10
comment How to get customizer to refresh when using radio buttons control
At first glance I wonder if this isn't working because there doesn't seem to be jS for "cb_color_scheme", and also, is that input actually properly assigned to a section? Sadly I don't have much time to help, but that's where I'd start!
Dec
10
comment Page featured image not showing on home page
Yes, inside that object you should see "ID", just pass that ID to this function: codex.wordpress.org/Function_Reference/get_the_post_thumbnail
Dec
9
comment How to get customizer to refresh when using radio buttons control
Can you post your jS?
Dec
9
comment Page featured image not showing on home page
See what this outputs: print_r( get_queried_object() );
Dec
9
comment Image filter works on attachement pages but not posts. I can't get the image ID
In the function parameters, isn't either $postID or $imgID the attachment ID?