bestprogrammerintheworld

less info
140 reputation
13
bio website wibergsweb.se
location Sweden
age 40
visits member for 9 months
seen Jun 12 at 10:41

I'm developing both code and my own company Wibergs Web. I live in Skövde, Sweden - and I'm enjoying life even though I haven't seen any polar bears here recently ;-)


Jun
12
comment Difference between get_category, get_term_by and get_categories
Aaah of course - about the get_category() that only returns the "category-part" and not the actual term. Thanks a lot!!
May
14
comment wp_reset_postdata() or wp_reset_query() after a custom loop?
Ok, thanks for clarifying! :-)
May
14
comment wp_reset_postdata() or wp_reset_query() after a custom loop?
So basically you're saying: Only use wp_reset_postdata() and the codex has a poor example? (If you want to do it correct)
May
12
comment WP_Query with tax_query not working
Just out of curiosity - why is having array(23) better then just typing 23 ?
May
11
comment Prepared statements used incorrectly in ACF?
Please remind me to award your bounty. I can't do it beore 10 hours has gone...
May
11
comment Prepared statements used incorrectly in ACF?
Ok. Thank you!!! I really didn't thought it was bad code in the plugin (else someone else had probably seen that a long, long time ago) I was just curious. And of course, you're totally right! (I was "stuck" thinking it's not ok to have variables in the prepare-function)
May
10
comment What happens when permalink settings are updated?
I don't think it's related to plugin because I have exactly the same plugins on another server which works all the time. What could a plugin do to mess this up? The only thing I would see it that a plugin changed the htaccess-file? I read now that The FollowSymLinks option must be enabled. Could this be an issue if the hosting company doesn't have this as default?
May
10
comment What happens when permalink settings are updated?
The hosting company must have those requirements, else it wouldn't work at all? I've updated my question with my actual .htaccess. I really can't disable all plugins one at a time. That would mean that I would have to have a lite site down for a few days just to checks what's the issue. I don't think my customer would agree to that...
May
7
comment Convert my php code into shortcode
codex.wordpress.org/Function_Reference/add_shortcode ?
May
7
comment Highlight current category, when using get_categories
Good you figured it out and thanks (+1) for sharing your solution! :-)
May
4
comment W3 total cache - white screen of death when trying to show certain taxonomies
Ok fixed that now :-)
May
4
comment Modify the .htaccess file
I really think W3 Total Cache interacts with htacess somehow as well. But try to inactive the plugin temporarily and see if it's the same problem...
May
4
comment Modify the .htaccess file
I don't WP itself would overrite it, maybe some plugin would do it. Do you have any cache plugins? (w3 total cache, w3 super cache etc), security plugins (Like WP Better Security etc)
May
4
comment Reverse order of events on homepage
Take a look at wordpress.org/support/topic/… (scroll down to last code snippet and there's a solution. I havent tested it myself. and it seems kind of a ugnly workaround, but it seems to be an issue with plugin)
May
4
comment Posts Not Paginating
You haved exported from an old site Twenty Twelve theme to an new site with the same theme, but you can't get the widget plugin pagination to work? Maybe the plugin doesn't support newer versions of WP? Have you made sure the pagination plugin shows in a specific area? (settings for the plugin). Is there any template specifically made for the plugin? If it is possible - try to export from old site to a new site with SAME version of WP to see if it's a problem with versioning of WP.
May
4
comment How to create custom php script page
Generally speaking there are 2 (good) options in Wordpress: 1) Put in (your) code to execute in the functions.php file of the active theme (located in wp_content/themes/<theme name>/ OR 2) Make a plugin and put your code in the plugin and activate the plugin. I would recommend start reading here... codex.wordpress.org/Functions_File_Explained
May
4
comment Modify the .htaccess file
You say you could restore the .htaccess over ssh. Couldn't you just change/modifiy the file over ssh ?
May
4
comment wp_ prefix changed. What is the way to change so any prefix is understood?
If there are red lines indicating there is a problem - you must know what the actual problem is. Else it's hard to give you feedback on that issue.
May
4
comment wp_ prefix changed. What is the way to change so any prefix is understood?
Change $table_prefix = 'wp_'; in your wp-config.php file?
May
4
comment Add custom menu item using wp_nav_menu_items filter
Take a look at codex.wordpress.org/Function_Reference/add_submenu_page