Support » Fixing WordPress » Template tag wp_list_authors not parsed!

  • Hi everyone,

    I am working on implementing the Fauna theme on my weblog, and there is a bug I do not understand at all.

    There is a template file (template-authormeta.php, FYI) that makes use of the wordpress template tag wp_list_authors, which contains this code:

    <?php /* Fix an annoying WP bug where wp_list_authors borks when there's only one user */
    $numauthors = $wpdb->get_var("SELECT count(*) FROM $wpdb->users");
    if ($numauthors > 1) { ?>
    <?php printf(__('There are %s authors/users attached to this weblog:','fauna'), $num_authors) ?>
    <?php wp_list_authors('optioncount=1&feed=RSS'); ?>
    <?php } else { ?>
    <?php _e('There is one author attached to this weblog.','fauna'); ?>
    <?php } ?>

    Now, if you look at my sidebar, on my testing blog, you notice that this template tag is not pared at all, nothing happens!?

    What is wrong here? Any idea?



Viewing 6 replies - 1 through 6 (of 6 total)
  • After a bit of discussion, it seems that the problem is on the WordPress side. Can anybody confirm?

    Is there anyone at WordPress development that can answer this question?

    Just tried it without any problems.

    I suppose this means “There are %s authors/users attached to this weblog”:
    Ce blogue compte 3 participants, toutes catégories confondues

    If yes, the if-branch is reached, there must be some other problem.

    It could help to take
    <?php wp_list_authors(‘optioncount=1&feed=RSS’); ?>
    and paste it into the index.php of your theme so you can see whether it works or not.

    Indeed uberdose, the if branch is reached, up to the “:”. Then, we should see the “List of authors”, but we don’t.

    I put the code in my index.php file like you suggested, and it still does not work.

    Il est navrant de constater que personne ne puisse — ou ne veuille — répondre à cette question. C’est pourtant un bogue qui pourrait intéresser toute la communauté WordPress.

    Pff! This sucks, I just upraded to the latest release and the bug is still there.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Template tag wp_list_authors not parsed!’ is closed to new replies.