Support » Fixing WordPress » Tags within Page?

  • I’ve got a Page created that I would like to have listed all the Authors, and it would be linked to their respective Page. (Parent/Child relationship)

    How can I get WP tags to work in a Page (ie. “wp_list_authors”)?

    And what where do I need to look to get the tag that will display all of the entries (as well as # count) from an Author?

    Thanks 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • To use the template tags, you could create an actual template file, and then when you create the page, you would tell it to use that template, instead of putting the content into the page itself. I hope that made sense.

    Yeah .. I think I understand you. Create another template (like “main.template”), and then when creating a new Page, select the created one from the pulldown menu “Page Template” under “Page Options.” (correct?)

    Couple of questions though:

    1. How do I get a template that I created to show up under that pulldown menu?
    2. Do I create a new template document by uploading a file to the server, under my themes folder?
    3. There is no other way around this currently? (as it does seem like it could generate lots of templates, if I create one for each Author) Is there a plugin that might make this a slicker process? Would there be one in development for a future release?

    1. You have to put some special code at the top of the template, then WP will recognize it as a template and include it in the list. See here:
    2. Yes.
    3. Umm I don’t know 🙂

    Thanks … will give a try and see how it goes. 🙂

    I’m having trouble with the <?php wp_list_authors(); ?> tag ….

    I’ve created a new template page (“All Authors”) and have uploaded successfully — I’m able to select it as a Page Template when creating a page, however, I cannot get this tag to work within the template page.

    What am I missing?

    Template Name: All Authors
    <?php get_header(); ?>
    <table border="0" cellspacing="0" cellpadding="0">
    <td width="188" valign="top">
    <?php get_sidebar(); ?>
    <td width="330" valign="top">
    <div id="content">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="post" id="post-<?php the_ID(); ?>">
    <span class="title"><?php the_title(); ?></span>
    <span class="text">
    <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>

    <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>

    <div class="authorlist">
    <?php wp_list_authors('optioncount=1&show_fullname=1'); ?>
    <?php endwhile; endif; ?>
    <small><?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?></small>

    <td width="200" valign="top">

    <td width="100%">&nbsp;</td>
    <td colspan="4" width="100%">
    <?php get_footer(); ?>


Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Tags within Page?’ is closed to new replies.