411 reputation
525
bio website
location
age
visits member for 3 years, 10 months
seen 16 hours ago

Mar
31
comment How to create a multidimensional array with multiple loops
Thank you so much! You are right that isn't a specific Wordpress question. But I still decided to put it here rather than on Stack Overflow since there are alot of WP specific stuff in this particular case. Thanks again!
Jan
6
comment Adding Custom Styles to the MCE dropdown toolbar
I'm experiencing the same problem. @MihaRekar If I check HTML there's nothing wrapping the selected portion of text.
Dec
7
comment Remove parent slug for child pages
I don't think it does it automatically though..
Nov
26
comment Conditionally load CSS/JS/PHP in wp-admin if using a mobile device
@JohannesPille In this specific case s_ha_dum's solution was what I was looking for although I recognize there's flaws to this method I know for a fact the the client only uses an iPhone or other iOS device to access the site and thus I tailored it to work for those devices. This is not ideal I know, but it saved me time.
Nov
26
comment Categories and products in random order
Where do you put this code?
Nov
26
comment Sorting Woocommerce products with numeric titles
I realize it's impossible for you to know what's wrong for my particular install. I will try and work with the MySQL solution instead. Could you please elaborate a little on how I can filter the results via MySQL for Woocommerce? I'm not sure where I should put any code or tie in with Woocommerce for this matter.
Nov
26
comment Sorting Woocommerce products with numeric titles
Thanks for your reply! I tried this: wordpress.org/support/topic/… but I didn't seem to work (The order didn't change when switching between asc/desc). What could be wrong?
Nov
17
comment TinyMCE Autoresize
@Hobo I know I would overwrite other plugins by doing as I initially wrote in the question, that was just for debugging purposes. As autoresize isn't part of TinyMCE for Wordpress it wouldn't work however I tried it. The plugin I wrote below does however work.
Nov
11
comment Conditionally load CSS/JS/PHP in wp-admin if using a mobile device
Thanks for your reply! That could've been a valid approach. Unfortunately I'm on 3.3.2 and cannot upgrade WP because the site is built with very many custom scripts that possibly would break if WP is upgraded.
Nov
11
comment Publish page by invoking submit via jQuery
Solved it by having a secondary button like my example and having the original publish button hidden. Thanks for your help!
Nov
8
comment Publish page by invoking submit via jQuery
The problem is that I only have #publish in the real example, #secondary-publish was just something I used in this demo for illustration purposes (so it wouldn't collide with wp original publish meta box). In the real example you actually push #publish and there's a check via ajax and then it's supposed to published, so #publish is gonna get pressed indefinitely. It's all there in the pastebin in my last comment.
Nov
8
comment Publish page by invoking submit via jQuery
Thanks for your reply (and your corrections). It works as it should standalone, but when I implent it in where it's gonna be used it produces a loop. Hm, do you have an idea what I could do? pastebin.com/RBZq842m
Nov
5
comment Only allow new subpages to be created
Yes, that part is all fine, but what happens if there's less than 9 parent pages?
Nov
5
comment Only allow new subpages to be created
No, it's nothing like that, when I press submit it processes as it should but when the page refreshes I get the message: "Page updated" rather than "Page published. View page". So it's only saved as a draft, not actually published. Did you try the above code without any troubles? I'm running 3.3.2, could that be an issue in that case?
Nov
2
comment Only allow new subpages to be created
Oops, sorry, didn't know I could do that. However, still some problems after all, it seems however I do it, it will only save as draft not publish. I've tried on two different setups just to be sure. Ideas? wordpress.stackexchange.com/questions/71009/…
Oct
30
comment Only allow new subpages to be created
$args = array( 'post_type' => 'page', 'post_parent'=> 0 ); should be $args = array( 'post_type' => 'page', 'post_parent'=> 0, 'numberposts' => -1 ); That was the problem :)
Oct
12
comment Change top level menu item to point to custom submenu item
I'm not entirely sure how I can use this to make clicking "Livsmedel" behave like you just clicked "New Sortable Menu". I just want to replace the regular view where pages and posts are listed, with my custom page and have it behave like it would do normally with the submenu getting highlighted when top level menu item is clicked/active.
Oct
10
comment Change top level menu item to point to custom submenu item
That might be a way if there's no other way to do it. I tend to try to rely on jQuery as little as possible in situations like this.
Oct
9
comment How to make certain page templates visible to admin only
So I'm left with manually fetching setting in the DB? Or what are my options?
Oct
7
comment Compare string with post id in wpdb and do stuff when match is found
@MihaRekar It's a custom CPT sorter based on the plugin CMS Page Order. I tie in with the ajax functionality that saves the new order in that plugin. I just want to be able to set post meta based on certain conditions. Can you help?