2011-07-03, 04:52:15
grs84pl Wrote:Ok. You hava a point in there, but that does not fix my problem.
Maby there shoud be another tag, "display in topmenu" and function that shows every page that has menuStatus = Y
For my purpose I've made that:
Code:function get_i18n_topmenu(){
...
}
I'm glad you could easily adapt the plugin to your requirements.
You should put this function into functions.php in your theme directory (create it if it does not exist). It is automatically included, so all defined functions are available in your theme.
grs84pl Wrote:And modyfied: get_i18n_link():
Code:function get_i18n_link($slug) {
...
}
Rather then modifying it, rename it to get_my_i18n_link and also put it into functions.php.