wp-functions in dokuwiki templates (1 post)

  1. Boris
    Posted 8 years ago #


    yesterday i intgrated authentication between wordpress and dokuwiki with a script from here: http://thedeadone.net/software/getting-dokuwiki-to-use-wordpress-authentication/.
    this also lets you use wordpress functions in the dokuwiki templates. so i decided to use my wordpress css menu in dokuwiki. this menu uses this function:
    <?php $my_query = new WP_Query('category_name=travelogues&showposts=9');
    while ($my_query->have_posts()) : $my_query->the_post(); ?>
    <li class="bg">"><?php the_title(); ?>
    <?php endwhile;?>

    now i get this error:
    Warning: Invalid argument supplied for foreach() in /www/htdocs/w006dc1d/travelogues/wp-includes/classes.php on line 496
    archive gallery

    i also integrated wordpress with the vanilla forum and the above function works perfectly in the vanilla menu template.
    i would really need some help with this. thanks a lot.

Topic Closed

This topic has been closed to new replies.

About this Topic