• Hi all,

    I’m new to this forum but hope someone can sheed some light on following question:

    I know, that wordpress taxonomies: categories and tags are by default only chained to posts but not to pages. If you install a plugin, or perhaps change code – what I can’t do because of lacking knowledge – one can add categories or tags to pages. Allright! If you display categories or tags on a page and click on one entry related to pages, wordpress says there is o query result. I bet, that worked in the past, however, not more in 6.1

    Does anyone have a similar experience? And if so, what can do the trick?

    Thank’s, Ferry, Newbe!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @ferryw63

    It is possible to display categories and tags on pages in WordPress using the wp_list_categories or wp_tag_cloud functions in your template files or by using a widget. These functions will generate a list of links to the respective category or tag archives, which are pages that display a list of posts associated with a particular category or tag.

    There could be a few issues if you are having trouble getting these functions to display categories or tags on pages. Here are some tips to help you troubleshoot:

    1. Ensure that you have added categories or tags to some pages in your WordPress site. Without any pages assigned to a particular category or tag, the archive page for that category or tag will not display any posts.

    2. Verify that your template files use the correct functions to display the categories or tags. The wp_list_categories function displays a list of categories, and the wp_tag_cloud function displays a list of tags.

    3. If you use a plugin or custom code to display categories or tags on pages, make sure that the plugin or code is compatible with the version of WordPress you are using. It’s possible that the plugin or code may not work properly with the latest version of WordPress.

    I hope these tips help you get your categories and tags displayed properly! If you have any further questions or need more assistance, please don’t hesitate to reach out.

    Thread Starter ferryw63

    (@ferryw63)

    Hi @faisalahammad,

    thank you for getting back to me on this one. I shoud mention, that I am able to display both categories and tags on a page using “wp_list_categories” function. The list is correct and if I choose one entry out of the list it will show up the associated posts with. However, if my selection addresses categories assigned to a page none of the pages will be found. Actually, WP displays the “not found panel”.

    You can check this behavior using my site. Goto /alrishas-inhaltsverzeichnis-und-index/, under categories, select “Charter”. You will see the “nothing found panel”, but there are 8 pages associated with, indeed. Choosing any other category related to posts just works fine. Doing the same in /wp-admin will display these pages!

    So from my point of view the SQL query related to that task (displaying results of the selected category) seems to be limited to posts only rather then posts and pages or whatever a category was assigned to.

    Thread Starter ferryw63

    (@ferryw63)

    My question stands. Is there anyone who can point me to more related documentation to figure out what can be done to display both pages and posts selected by a category?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Taxonomies used for pages in addition to posts’ is closed to new replies.