Aggregate posts filtered by a specific tag in EDIN theme?
-
I know you can pull posts into a “recent news” list using the EDIN theme. But can you filter down to specific posts using tags and pull them onto a separate page?
I’m trying to aggregate information about monthly chapter meetings. My first thought was to create a static page and simply update the information each month – but I’d like to have unique URLs, hence the tags question.
https://testsitefornaprca.wordpress.com/
The blog I need help with is: (visible only to logged in users)
-
Dynamic category pages will automatically display all published posts that you have assigned to that specific category.
By default the front page of a blog displays all published posts in reverse chronological order with the most recently published post on top. When we publish a post on WordPress software the software automatically creates the same entry in the Archives, and on the dynamic (automatically updating) Categories and Tags pages in accord with the Categories and Tags we assign to that post.
Organizing posts
Dynamic category pages https://en.support.wordpress.com/category-pages/ created by the software when we assign categories to posts are also not the same as static pages https://en.support.wordpress.com/pages/ we create.You can create a custom menu and include multiple dynamic category pages that automatically display the published posts assigned to the the specific categories in reverse chronological order.
Assign categories to posts.
Create a custom menu.
Add the dynamic category pages to into the custom menu.You begin by assigning categories https://en.support.wordpress.com/posts/categories/ to your posts.
So when we create custom menu and add the dynamic (automatically updating) category pages to that custom menu we create the appearance (not the reality) of posting to more than one page.
You need to be aware that:
1. There are differences between posts and pages described here
https://en.support.wordpress.com/post-vs-page/2. There are differences between static pages we bloggers create https://en.support.wordpress.com/pages/ that will not automatically update, and dynamic category pages created by the software when you publish a post which will automatically update https://en.support.wordpress.com/category-pages/.
3. We organize posts by category assignment prior to publication. http://en.support.wordpress.com/posts/categories/ and when we publish posts the dynamic category pages they automatically display on are determined by the categories we assign to them.
So the process you need to use is:
a. Assign Categories to your Posts. https://en.support.wordpress.com/posts/categories
b. Create a custom menu https://en.support.wordpress.com/menus/#1-create-a-custom-menu
c. Add only the dynamic category page links into the custom menu that you want to appear in that menu https://en.support.wordpress.com/menus/view-all/#adding-category-pages and arrange them as you wish them to appear https://en.support.wordpress.com/menus/view-all/#changing-the-order-creating-sub-menus
d. Create pages and sub-pages for static content, not for posts https://en.support.wordpress.com/pages/
e. Add any custom links and other items like static pages and sub-pages into your custom menu
https://en.support.wordpress.com/menus/view-all/#adding-custom-links https://en.support.wordpress.com/menus/view-all/#adding-pages
and arrange them as you wish them to appear https://en.support.wordpress.com/menus/view-all/#changing-the-order-creating-sub-menusPlease see https://en.support.wordpress.com/customizer/
-
That’s a lot to digest but I suspect you’ve found my answer. I will start experimenting. Thank you for the quick response
-
I hope you succeed but post again if you don’t.
note: tags and categories are not the same thing Categories vs. Tags
https://en.support.wordpress.com/posts/categories-vs-tags/
Dynamic category pages https://en.support.wordpress.com/category-pages/ -
I made it work – thank you so kind.
A followup question. In the EDIN theme, is it possible to make sidebar navigation that is different for different pages? I’ve been able to make the menus, but it appears to be all or nothing.
-
What’s possible is on the theme page and related support docs. Let’s ask Staff to assist you with sorting this out. I will type modlook into the sidebar tags on this thread for Staff help. How do I get a Moderator/Staff reply for my question? https://en.support.wordpress.com/getting-help-in-the-forums/#how-do-i-get-a-moderatorstaff-reply-for-my-question Subscribe to this thread so you are notified when they respond and be patient while waiting. To subscribe look in the sidebar of this thread, find the subscribe to topics link and click it.
-
Hi there,
You might be able to make this work, yes. You’ve already created the menus. Next you’ll need to add a separate Custom Menu widget for each menu. Then you can use the Widget Visibility settings to control which widget is visible on which page on the site.
Just keep in mind that Edin doesn’t display a sidebar on all pages – if a page is set to the full-width template it won’t show the sidebar.
-
Ah! I had not noticed the visibility portion of the widget. I will start experimenting – thank you!
-
-
I’m nearly there. I have created a navigation menu that pulls all my category-specific posts, and I’ve added that menu as a sidebar on my static page. But I can only get it to show a link with the menu name, rather than a list of the last 5 most recent category posts in the sidebar.
Can that be done?
https://testsitefornaprca.wordpress.com/events/big-event/ -
I didn’t understand that you want the actual posts to display in the menu earlier.
Category links in a menu will lead to a page listing all posts in that category, most recent first. The actual menu will show only the category page link. To have the menu display posts, you’ll need to add each post to the menu manually – menus are basically a preset collection of static links, they can’t be used to show dynamic content.
If you want the posts to be listed, try using the Display Posts shortcode in a text widget instead.
This code should do the trick:
[display-posts category="big-event" posts_per_page="5"]
Then you can use different categories in the code in different widgets, and control visibility as you did for the custom menu widget.
Note that content of the shortcode is cached, so it can take up to an hour after publishing a new post before it will show in the widget.
- The topic ‘Aggregate posts filtered by a specific tag in EDIN theme?’ is closed to new replies.