Hi
Currently i have a projekt where i want to show the menu for a restaurant on the website. I have created it with types and views. Yes i still use views instead of blocks because i don´t like the Gutenberg editor.
To the restaurant menu i also need a way for the users who visits the website to subscribe to the menu so they get the menu for the next week every sunday afternoon.
Can this be done with toolset?
Hi,
Thank you for contacting us and I'd be happy to assist.
Since there is no built-in feature available for subscribers and periodic newsletter management, you'll need to add a lot of complex customizations, if you'll try to build this using Toolset only.
There are a number of third-party newsletter plugins available, which can make this process, simpler for you.
Here are few articles which review some of the popular options:
hidden link
hidden link
regards,
Waqar
Hi
Thank you for your answer.
I have tested two plugin "Newsletter" and "Email Subscribers & Newsletters". Both plugins seems to be able to send notifications when a post is published or updated.
The problem is that i want to send the same data by email that the visitors of the website see. It seems like i can´t use a shortcode in a wordpress notification email.
So my question is if the only solution is to add a link to the website instead of getting all data directly to the inbox.
Hi
For my needs Mailpoet is the best solution. But the problem is that i can´t embed a shortcode in a newsletter mail. It just displays the shortcode instead of the content of the shortcode.
I found this topic, but it didn't helped me. The problem is still the same.
https://toolset.com/forums/topic/question-about-sending-views-output-to-newsletter-subscribers/
I also found that i can create a custom shortcode and that worked if i only display text.
hidden link
Can i send content of a shortcode in a newsletter email? That is what i want to do instead of sending a link to the website.
Thanks for the update.
Toolset offers a number of shortcodes and Types Fields API, which can be used in your custom shortcode for the Mailpoet:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/
https://toolset.com/documentation/customizing-sites-using-php/functions/
From that guide ( ref: hidden link ), it seems that shortcodes can be used in the Mailpoet newsletter, however, they are processed differently than WordPress. You'll have to run each shortcode through the "mailpoet_newsletter_shortcode" filter.
You can try creating a custom shortcode, as shown in that guide, and call Toolset data using those shortcodes and Types API functions.
Tip: To get the output of the shortcodes in the PHP code, you can use "do_shortcode":
https://developer.wordpress.org/reference/functions/do_shortcode/
For more personalized assistance around custom code, you can also consider hiring a professional from our list of recommended contractors:
https://toolset.com/contractors/
Thank you.
Hopefully this will work.
You're very welcome and please let me know if you have any follow-up questions.
For a new question or concern, please start a new ticket.