552 reputation
415
bio website ianchanning.wordpress.com
location Belgium
age 35
visits member for 3 years, 6 months
seen 2 days ago

Monkey coder no. 76540


Sep
16
comment WooCommerce - Adding notice above products on Shop Home
To be clear, as you mention in your question, you'd first be copying the woocommerce template to your theme before modifying it
Mar
18
comment How to display WordPress User Registration Form in front end of the website?
Thanks @FabienQuatravaux, I've updated the answer to include the last section of the article. There should be no need for an AJAX form - its just a POST form that submits to the wp-login.php?action=register page
Dec
4
comment Download an image from a webpage to the default uploads folder
this WordPress support topic has more info
Dec
4
comment Download an image from a webpage to the default uploads folder
I had issues with this when it was permissions issue on the images in the uploads directory - they needed to be owned by the server user (e.g. www-data on apache/linux)
Aug
2
comment How do I find the version of WordPress I have from the source code?
though a valid way of finding the version, this is not from the source code, rather its from the output of running the source code.
Jul
24
comment How MUST the directory for a plugin be structured?
Certainly your first question 'How does WordPress determine the main PHP file' is answered directly in the main 'Writing a plugin' guide on file headers
Jul
24
comment How to implement a custom sliding banner?
Have you tried searching for a slider plugin? You should show some kind of research effort when asking a question.
Jul
8
comment Filter Select results based on selection
that'll be AJAX then: stackoverflow.com/questions/586936/…
Jul
8
comment Filter Select results based on selection
further to get access to the URL params you want $wp_query->query_vars['myvar']: wordpress.org/support/topic/how-to-pass-value-in-wordpress-url
Jul
8
comment Filter Select results based on selection
I think you just want a javascript redirect for the onchange event then add in the param you want to filter on in the URL
Jul
3
comment Workflow for working with git and WordPress
This is very similar to this question: wordpress.stackexchange.com/questions/83046/…
Jun
11
comment home_url on IIS missing permalink index.php
Yes - the code does get ugly, which is why I switched to modifying the site address which works much better. I only use it as they do use $is_iis7 in the source of the iis_supports_permalinks function.
Jun
10
comment home_url on IIS missing permalink index.php
Ah following on from your Adam Brown database I spotted this function iis7_supports_permalinks.
Jun
10
comment home_url on IIS missing permalink index.php
Thanks for this - I was hoping for an internal WP function along the lines of base_permalink_url or some sort, but for a custom bit of code this would definitely be the neatest solution. I think that home_url normally leaves off the end slash, so the slash should be the other side of index.php i.e. return $url . '/index.php';
Jun
6
comment Using a database view = evil incarnate?
Ok, I see what you mean. Thank you for the excellent help :)
Jun
6
comment Using a database view = evil incarnate?
Ah - do you just mean use the functions in export.php? That only seems to be for posts.
Jun
6
comment Using a database view = evil incarnate?
I've been searching for the export API but can't find exactly what you mean. I can see that the Contact Form 7 plugin clearly does it correctly as it adds an extra 'Contact Forms' option to the list of possible exports in Tools > Export.
Jun
10
comment Saving fields in a drop-down in Wordpress
As @Stephen Harris says - you're not setting the $template value. Try putting this at the top of your function: $template = $post->page_template;
Jun
10
comment Saving fields in a drop-down in Wordpress
If as you say your default template gets updated in the database correctly - then when you refresh the page then you should have the text of the selected template in the $template variable. Have you tried printing out the $template variable to see what's in it?
May
31
comment How can I get all posts data from within a paginated search result?
Could you add the code that you're using that returns the filtered $posts?