332 reputation
16
bio website twitter.com/jounileander
location Helsinki, Finland
age 30
visits member for 1 year, 5 months
seen 3 hours ago

I like to be responsive. I care about my front end.

Web design with love <3

Find me on LinkedIn, Twitter & [Github][3]


Sep
25
comment How do I translate string inside jQuery script with WPML?
Glad to help. As this was just a quick and ugly way to do this, you might want to try wp_localize_script as JMau pointed out.
Sep
24
comment How do I translate string inside jQuery script with WPML?
Get the lang attribute value with jQuery .attr, store it as a variable and do a simple if else statement to output different href for different values. You could also output the href with php from stored custom field etc. or use icl_language_code to output different static values for different languages. But to keep it simple, just get lang value from html and go with that.
Sep
24
comment How do I translate string inside jQuery script with WPML?
If you want to keep on using this static way for writing your url's, you could sniff the lang attribute value of html-element and output a different url for different lang values. But why are you writing href's with jquery in the first place? It seems a bit funny.
Sep
24
comment Prevent WordPress from cropping GIF files
Okay. I see your point. I am just wondering if there is really a need to achieve this other than that. Gif files take minimal space on server, so I wouldn't waste a lot of time to achieve something that doesn't really effect the server nor your site. I will get back to you if I actually have an answer to your original question.
Sep
24
comment Prevent WordPress from cropping GIF files
Wordpress creates different sizes of your image, but it doesn't remove the original file. How / where are you using your gif files?
Sep
24
comment Prevent WordPress from cropping GIF files
Why not just use the original files in your theme/posts and not the thumbnails?
Sep
11
answered How do I add and display a custom image field to a category?
Sep
10
awarded  Autobiographer
Sep
8
comment Creating custom input fields on the admin side
Done. Glad to help.
Sep
8
answered Creating custom input fields on the admin side
Sep
5
comment Creating custom input fields on the admin side
For beginner the easiest way to create custom fields for post types is ACF -plugin advancedcustomfields.com If you need to create custom post types I would recommend Types -plugin that actually has custom field builder too (not as neat as ACF though) wordpress.org/plugins/types
Jun
27
awarded  Yearling
Mar
26
answered Custom Field sort not working (WP 3.8.1)
Mar
21
comment wp-admin: Sort users by surname
You can achieve this easily with CodePress Admin Columns plugin: wordpress.org/plugins/codepress-admin-columns Just add surname to columns via admin columns settings page.
Jan
30
answered content summary of a post disappears If an images added at the beginning of the post. how to solve it?
Jan
30
comment Some user's cant see custom taxonomy meta-box
You are aware of screen options, right? Just checking. en.support.wordpress.com/screen-options
Jan
22
comment Query connected posts from 2 diffrent post types (using posts2posts)
let us continue this discussion in chat
Jan
21
comment Query connected posts from 2 diffrent post types (using posts2posts)
My code was an example once again. You can't just copy/paste it. You need to create your posts array with query for your posts, etc. If you mix two arrays, you need to build two separate arrays with queries. I suggest that you edit my array mix example out of your original question, since it was only a raw example what you could do to achieve your desired list.
Jan
21
revised Query connected posts from 2 diffrent post types (using posts2posts)
added 912 characters in body
Jan
21
comment Query connected posts from 2 diffrent post types (using posts2posts)
Check my edit above.