• Would really appreciate it if someone can advise on how to create a page with a list of authors.

    In my sidebar there is a list of authors. I saw the command that pull the list of authors is “

    <?php wp_list_authors (‘exclude_admin=0&show_fullname=1&hide_empty=1&feed_image=’ .get_bloginfo(‘template_url’) . ‘/images/rss.gif&feed=XML’); ?>

    So i have > Write > Page and in the code view i have added the following :


    <!--'wp_list_authors'-->

    But it is not listing authors as in the sidebar.

    Please advise

Viewing 1 replies (of 1 total)
  • Putting the code inside <!– –> tags will display it as an HTML comment in the page’s source code; it won’t actually be visible on the page.

    This particular code needs to be enclosed by php tags so that it isn’t treated as HTML. As it is a php function, it is followed by open and closed parentheses “()”. Following your example above, it would be done as
    <!--<?php wp_list_authors() ?>-->

    The biggest problem however, is that you cannot put php into Pages or Posts without the use of a plugin. You should instead edit the particular page template (or create a unique one for this purpose) from inside wp-content/themes/your-current-theme/ and include the php function.

Viewing 1 replies (of 1 total)
  • The topic ‘What am i doing wrong?’ is closed to new replies.