Community Forums › Forums › Archived Forums › General Discussion › Aggregating content based on tag
- This topic has 6 replies, 3 voices, and was last updated 9 years, 9 months ago by
coachrichard.
-
AuthorPosts
-
February 26, 2016 at 2:56 pm #180007
coachrichard
MemberI think i recall there being a way to create a menu that brings up a page with all content that has a particular tag or category in it. I think it was independent of the theme, meaning it used an archive page perhaps to build the page based on one of these meta data fields. Does anyone recall how to do this?
For instance, I want to create a contributor page that I have in the menu, that automatically surfaces a list of people who are tagged as contributors in the user type. Ideally this page would bring a name, gravatar and abstract or intro of the bio. Once you clicked, it went to a page devoted to them and all their posts.Any ideas?
February 26, 2016 at 4:18 pm #180015Victor Font
ModeratorIn the WordPress menu builder you can create a category menu. As an alternative, you can use query_args in a custom field to filter an archive page, : http://victorfont.com/use-query_args-filter-wordpress-posts/
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?March 2, 2016 at 2:18 pm #180461coachrichard
MemberI see those instructions now here. http://my.studiopress.com/tutorials/category-blog-page/
What I was hoping to do was to add an image and some introductory text as well, but this method only seems to append the posts from the category to the page, and not content from the editor or featured image.March 2, 2016 at 6:11 pm #180487coralseait
MemberYou'll want to then look into either:
a) hooks and filters to mod the output via some code in functions.php
or
b) template hierarchy to build your own template for the tag / category which includes the content you need. You can also use a custom template which is somewhat similar but uses the drop down in the editor to select the template the page uses.
Generally, I'm more of a fan of using the template hierarchy as this keeps functions.php cleaner and encapsulates all your display and logic for a given 'feature' and keeps less settings in the editor which users could change (although you can mask it) accidentally.
March 4, 2016 at 5:18 am #180632Victor Font
ModeratorWhat theme are you using? The developer may have deactivated the features you want in functions.php.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?March 5, 2016 at 9:21 am #180705coachrichard
MemberDigital Pro
March 5, 2016 at 9:30 am #180706coachrichard
MemberHi Coral Sea IT,
While i am not against constructing new templates or creating function files for child themes, i am more inclined to simplifying my efforts from a maintenance perspective by using what the CMS offers "out of the box," enhanced by widgets, plugins, hooks and short-codes. -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.