WordPress.org

Support

Support » How-To and Troubleshooting » wp-functions in dokuwiki templates

wp-functions in dokuwiki templates

  • Boris
    Member

    @travel-junkie

    hello,

    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.

  • The topic ‘wp-functions in dokuwiki templates’ is closed to new replies.