Forums

Pages list with following tags (8 posts)

  1. luxusdisco
    Member
    Posted 1 year ago #

    I made pages in wordpress. I use the plugin TagPages to tag the pages.

    I put to sidebar.php this:
    <?php wp_list_pages('sort_column=post_date'); ?>

    But I would like to show the tags near the page name in the pages list.
    How can I do this?

    (the plugin use the common things example: get_the_tags(); etc.

    Thanks!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

  3. luxusdisco
    Member
    Posted 1 year ago #

    Thanks, but I know this page, and it cant help my problem.

    My question is: how can I build the get_the_tags or the_tags into the "wp_list_pages"?

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    You can't add anything related to tags to wp_list_pages.

  5. luxusdisco
    Member
    Posted 1 year ago #

    So, I cant fill the post-template.php with get_the_tags?

    <?php
    $posttags = get_the_tags();
    if ($posttags) {
    foreach($posttags as $tag) {
    echo $tag->name . ' ';
    }
    }
    ?>
  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    You could use get_tags in your page template but you can't add it to the wp_list_pages template tag.

  7. luxusdisco
    Member
    Posted 1 year ago #

    And how or what can I do, to add a description or category name or anything (just one word each page name) to the pages list items?

  8. luxusdisco
    Member
    Posted 1 year ago #

    Is that possible, I cant make a menu from my pages list with category name or tag name (or one word).

    I can put the page ID and the date, but tags or category name not?!
    Riddiculous.

    Could you tell me why, please?
    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic