Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tsml_front_page function not working #841

Open
joshreisner opened this issue Jun 23, 2022 Discussed in #832 · 1 comment
Open

tsml_front_page function not working #841

joshreisner opened this issue Jun 23, 2022 Discussed in #832 · 1 comment

Comments

@joshreisner
Copy link
Contributor

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 #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/

@joshreisner joshreisner added this to the TSML v3.14.13 milestone Jan 15, 2023
@joshreisner joshreisner removed this from the TSML v3.14.13 milestone Feb 23, 2023
@anchovie91471
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants