Recent posts by topic menu

How do you sort recent posts by topic and have that menu alongside the posts

Hello @SK_Parfait,

Thanks for asking. :slight_smile:

Ethos stack has filter by topic feature built in. I suggest you to please take a look at the demo page. http://demo.theme.co/ethos-1/

Thanks.

Ok, but that still doesn’t answer the question how to add it. I have the “Recent Posts” on my Article page where all of my articles are listed but there is no way to sort by the topics that I have created. There should be a section on the side where you can search article by topic. How do I add this? I don’t see an element that does this.

Hello @SK_Parfait,

Thanks for elaborating the question and I am really sorry for the confusion.

If you are looking for have filter in sidebar, then you can take advantage of plugins. I am sharing few plugins that you can take a look.



https://www.designsandcode.com/wordpress-plugins/search-filter-pro/

You can also take a look at the method explained in following tutorial:

Thanks.

Thank you! The bottom tuitorial worked, so I added the short code “[searchandfilter headings=“Select categories:” types=“checkbox” fields=“category”]” but the search bar doesn’t appear above all of the category selections, so I’m not sure how to add that?

Also, when I test and select a topic and click Submit, it does nothing. How to make that actually work?

Thanks in advance!

Hello @SK_Parfait,

Thanks for updating thread. :slight_smile:

Unfortunately I won’t be able to help you with custom development as it falls outside the scope of support we offer. By sharing links in above reply my intention was to point you in right direction but in case you are not comfortable with programming and development, I suggest you to seek professional help.

Thanks for understanding.

How is this custom development when this is only inserting code for a widget? Can you tell me then if there are any widgets that actually work? How can themeco provide an element for “recent posts” that is not fully functional? I’ve never seen a site or blog that simply lists articles with no way to sort or search. Come on, you guys have to do better than that.

Hi There,

Sorry for the confusion, is that the site you’re working on below? So you’re using Recent Posts element, recent posts element meant to display post from newest to oldest (unless you apply an offset), and it can only display up to 4 posts, with that said Recent Posts element is not the right way.

I tried to look for your blog index page and I can’t find it. What do I advise is to have a Blog index page with sidebar, while Blog index page displays the posts from newest to oldest, as it should, you can have a category widget, a tag cloud widget, and search widget on the sidebar for your user to filter the posts.

How to Create a Separate Page for Blog Posts in WordPress

Hope this helps,
Cheers!

Thank you so much! I added the widget to my Articles page and that is working well! Next question, how do you get that sidebar to appear for every article and search?

HI again,

To display sidebar on every post and on search page, please navigate to Appearance > Customize > Layout and Design > Content Layout and enable either Content Left, Sidebar Right or Sidebar Left, Content Right

Hope this helps!

I did this, and the box shows up where the sidebar should be on the right but it is completely empty.

Hi again,

You need to add widgets in your sidebar to display them on front end please see https://codex.wordpress.org/Appearance_Widgets_Screen and https://codex.wordpress.org/WordPress_Widgets

Hope this helps!

Yes, I created the sidebar widgets and added the widget in cornerstone to the Articles page for the posts, but this still doesn’t solve how to add that to show up when you click on an individual article…it goes away and you have to back click to get back to the search/sort widget.

Hi There,

This is confusing because you set up your Articles/Blog page completely wrong.

The Articles page should be your Blog index page, right? So you should not be editing this page in Cornerstone. Blog index page is fully generated with your Latest Articles and Main Sidebar automatically.

  • To do this, navigate to Settings > Reading and set your Article page as Posts page.
  • Then navigate to Appearance > Widgets and fill the Main Sidebar with the widgets you like (category, tag cloud, search, etc.).
  • Then navigate to Theme Options > Layout and Design and set the CONTENT LAYOUT to Content Left, Sidebar Right. (If you don’t set this your individual article won’t get a sidebar)
  • Navigate to Theme Options > Blog and set the Layout to Use Global Content Layout
  • Some of your pages will be affected with this, it will get a Sidebar too. If you don’t want a sidebar for your pages, please use a Blank - No Container | Header, Footer page template for your pages.

Hope this shed some lights,
Cheers!

This did not work. It changed the heading back to “Blog” and no side bar is visible.

Hi there,

Let’s do this one at a time, first, please provide your Blog/article URL just in case we’re referring to wrong one. Then go to Admin > Settings > Reading > Front page displays > Static page and assign your article page as your posts page. Let us know once done and we’ll proceed to the next step. This initial step is to make sure you have a real article page where posts are displayed.

Next will be setting up layout (sidebar), and adding widgets.

Thanks!

http://skparfait.com/articles/

Hey There,

http://skparfait.com/articles/ is just a normal page. This is not a blog index or your posts page. You did not follow @Rad’s suggestion above. To explain how you can create a blog index or your posts page, please see the “Create a blog page” from this codex article: https://codex.wordpress.org/Creating_a_Static_Front_Page#Creating_a_Static_Front_Page

Now if you have assigned your Articles page as your Posts Page, it will become your blog index.

  • To make sure that it has a sidebar, please go to X > Launch > Options > Blog and select the layout to “Use Global Layout”.
  • And if ever you have set the global layout to fullwidth, you will need to change that by going to **X > Launch > Options > Layout & Design > ** and set the Content layout to “Content Left, Sidebar Right”.
  • And again, you might say, “if I change it, some of my pages will have a sidebar. I want my pages with no sidebars!”. Well, To have a fullwidth page, the exact and correct way to make it fullwidth is by using page templates. The default page will be using the content layout you have set globally. If in some case, you want a page to have a “Sidebar Left, Content Right” or “Fullwidth” page, simple edit the page and change the page template. To know more about these page templates in the theme, please check this out:
    https://theme.co/apex/forum/t/features-page-templates/50/1
  • And lastly, you might be confuse or asking where is your sidebar. Please go to Appearance > Widgets and make sure that the main sidebar has all the widgets you want to display like this search, search by topic or the recent posts widget.

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.