WordPress.org

Ready to get started?Download WordPress

Forums

Adding list of post tags to a page (4 posts)

  1. SwatchAndLearn
    Member
    Posted 3 years ago #

    I don't know much about coding, so please help. I want to add a list of all my post tags (updated automatically as new ones are created) to one of my pages.

    My site is: http://www.swatchandlearn.com/. All my current post tags are of brands. Once I figure out how to do this, I'm going to use the empty page as a Brands page.

    Thanks in advance. :)

  2. keesiemeijer
    moderator
    Posted 3 years ago #

    You can create a page template for all the brands and use wp_tag_cloud to show all your tags on that page.

  3. SwatchAndLearn
    Member
    Posted 3 years ago #

    Thanks for your response! Didn't get around to testing the page template until now; sorry for the late appreciation.

    I'm having some issues with the format of this page: http://twitpic.com/2sfkgv. 1.) How do I format the list so that it's not so close to the left side? 2.) The bolded Brands at the bottom is actually supposed to be the title of the page, I think. But it's been pushed down to the bottom. How do I fix this? 3.) The comments section is all messed up.

    I have created a page template for tags with the following code (it's a mess; basically, I just pieced together coding from other php files):

    <?php /*
    Template Name: Tag Archive
    */ ?>
    <div>
    <?php get_header(); ?>

    <div id="container" class="clearfix">
    <?php get_sidebars(); ?>
    <!-- content start -->
    <div id="content" class="clearfix">

    <?php wp_tag_cloud('smallest=10&largest=10&number=0&format=list'); ?>

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <h2>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></h2>
    <div class="entry">
    <?php the_content('Read the rest of this entry ยป'); ?>
    </div>

    <?php endwhile; ?>
    <?php endif; ?>
    </div>
    <?php get_footer(); ?>

    Thank you in advance.

  4. SwatchAndLearn
    Member
    Posted 3 years ago #

    Any help would be great appreciated. :)

Topic Closed

This topic has been closed to new replies.

About this Topic