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!
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"?
You can't add anything related to tags to wp_list_pages.
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 . ' ';
}
}
?>
You could use get_tags in your page template but you can't add it to the wp_list_pages template tag.
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?
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.