426 reputation
210
bio website jonasnordstrom.se
location Sweden
age 45
visits member for 4 years, 1 month
seen Apr 29 at 10:20

WordPress developer and owner at Burning Umbrellas.


Jan
14
comment Give editor ability to edit custom settings without access to Main Settings
I don't understand why you would vote down an answer that actually works and solves the problem?
Nov
25
comment get_template_directory_uri() and other URL tags not working in theme
@aboutaaron did you get it working? I have the same problem. get_stylesheet_directory_uri() and get_template_directory_uri() returns empty string.
Nov
12
comment how to query posts by category and tag?
The last comma is actually recommended to be there, if you want to adhere to the WordPress Coding Standard
Nov
4
comment Get wp_get_attachment_url outside of loop
Sorry, that's true, wp_get_attachment_image_src returns an array. I have edited the answer now.
Nov
1
comment How to create a page template using custom plugin
Ah, ok, agreed, this should be seen more as a proof of concept, how the content is generated is up to the plugin author.
Oct
31
comment How to create a page template using custom plugin
Won't scale? It is a one time operation! Doesn't matter if you write to file or copy a file.
Oct
18
comment Custom template for password protected page
post_password_required() returns true if post requires password and correct password has been provided. See codex.wordpress.org/Function_Reference/post_password_required
Aug
22
comment Theme Options Doesn't Work On WP Multisite
Do you have a function "th_op" or did you mean "theme_options"?
Aug
22
comment Upload an image in wordpress plugin
Did you try the link in my first comment? Would that work?
Aug
22
comment Upload an image in wordpress plugin
Is it a frontend or backend feature you are looking for? Could something like this help you? codestag.com/…
Apr
25
comment wordpress login blank screen
localhost is probably the correct setting, if the database is on the same server as the web server. Check the error logs on the web server for any errors. try setting WP_DEBUG to true in you wp_config.php file and check if you get any error output in the browser.
Apr
22
comment How can you upload an image from within a settings page?
It would be so nice with a full example of the validation callback functions. I can't seem to make it work.
Nov
5
comment How to get ID of the page included with get_page()?
Did you ever find a solution for this, I have the same problem where a shortcode function needs to know on what page it was defined. And that page is included (through get_page()) into another: I can only get the post_id from the "hosting" page.
Dec
20
comment Intermittently missing pages and posts in WordPress
I have tried that. Actually you only have to visit the permalinks page to flush the rewrite rules, save is not necessary. But alas, this did not help my problem.
Nov
4
comment Preview posts returns 404
I will try it, but changing a core file is never a good idea, especially not when a new release of WordPress is just around the corner.
Oct
4
comment Preview posts returns 404
Brian: Unfortunately, that results in the same error. (You do not have permission to preview drafts)
May
10
comment Preview posts returns 404
preview links: example.com/blogname/?p=5&preview=true and example.com/blogname/2010/12/hello-world/…
May
9
comment Preview posts returns 404
yes I have, no errors.
May
8
comment Preview posts returns 404
I tried changing theme to the WordPress default. Same error.
May
8
comment Preview posts returns 404
The problem is the same across all browsers. As far as I know, none of the 100+ blog users on the site can preview their posts