mlauri
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Drop-down menu doesn't show upThanks! Yes, I resolved my issue. There was a jquery error in the code. First, I had mistyped the jquery javascript source address (I copied it from my another site and the theme folder was wrong). Second, I had a
});line missing from a jquery function.Probably the first point was the one which did the mess.
Forum: Plugins
In reply to: [Plugin: List Yo' Files] User Info Column in Options?Thanks.
Looking forward to hearing about this update. Isn’t there a simple way how I could add it on my own?
M.
Forum: Plugins
In reply to: [Plugin: List Yo' Files] User Info Column in Options?Anyone, please?
Although nobody replied, I found the solution with a help of my friend. If anyone of you has the same issue, then you can use different category for each language. For example, the language X is ‘6’ and language Y is ‘5’. So, in the get_posts function you simply add a function which changes the category id according to the current language. We used
category=' . loeKeeleNumber()In the functions.php file you simply add the following rows:
function loeKeeleNumber() { if (ICL_LANGUAGE_CODE=='et') return 6; //language X elseif (ICL_LANGUAGE_CODE=='fi') return 5; //language Y else return 0; //default value }This should be the piece of code which calls the posts and should be edited.
<?php $postslist = get_posts('numberposts=50&order=DESC'); foreach ($postslist as $post) : setup_postdata($post); ?>