• 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.

    Thread Starter stew278

    (@stew278)

    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:
    http://codex.wordpress.org/Pages#Creating_your_own_Page_Templates
    2. Yes.
    3. Umm I don’t know 🙂

    Thread Starter stew278

    (@stew278)

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

    Thread Starter stew278

    (@stew278)

    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?

    <?php
    /*
    Template Name: All Authors
    */
    ?>
    <?php get_header(); ?>
    <table border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="188" valign="top">
    <?php get_sidebar(); ?>
    </td>
    <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">
    <br><br>
    <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>

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

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

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

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

    Thread Starter stew278

    (@stew278)

    anyone?

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