code4recovery / 12-step-meeting-list

WordPress plugin for managing a list of weekly recovery meetings
https://wordpress.org/plugins/12-step-meeting-list/
GNU General Public License v2.0
53 stars 51 forks source link

tsml_front_page function not working #841

Open joshreisner opened 2 years ago

joshreisner commented 2 years ago

We should either fix the tsml_front_page function or remove it and update the documentation.

There is a DIY solution below, alternatively we could potentially create a setting for this.

Discussed in https://github.com/code4recovery/12-step-meeting-list/discussions/832

Originally posted by **douggreen** June 18, 2022 I'd like my sites home page to be the meeting list (search) page. This site is currently in development so the URL is https://dev.blueridgeareaintergroup.org I've changed the home page using ``` // Make the meeting guide the home page. // @ee https://wordpress.org/plugins/12-step-meeting-list/ add_action('pre_get_posts', 'tsml_front_page'); ``` But it shows a "River of News", that is, it shows my two meetings listed one after the other. I'd like it to instead be https://dev.blueridgeareaintergroup.org/meetings/
anchovie91471 commented 1 year ago

We could possibly accomplish this by adding a custom template similar to what was outlined in the original discussion.

With the gutenberg blocks in TSML Xtras, we could also do something similar to what Woocommerce and other plugins do and create a page and add the block during install.

With TSML Xtras, users can create a page, add the block and then use the Wordpress settings to make the new page their homeapge as they would any other.