awslabs / aws-for-wordpress

Amazon Polly Plugin for WordPress, which enables functionality for converting any text content on the wordpress site into audio.
https://wordpress.org/plugins/amazon-polly/
GNU General Public License v3.0
81 stars 36 forks source link

Allow a SHORTCODE for use in things other than posts etc. #7

Open dschueler opened 6 years ago

dschueler commented 6 years ago

Is there SHORTCODE support so I can use this for text sections in things other than the posts..

tstachlewski commented 6 years ago

Hi, You mean WordPress content other than posts, yes? Pages etc.?

dschueler commented 6 years ago

Yes. I have some themes that are custom Posts too but I would just like to use a shortcode versus enable anything for the whole page. Is there a shortcode and I missed it?

Other plugins like Responsive Voice allow me to put shortcodes around what I want read back. Sometimes I have smaller chunks of text I want read in multiple places in the post.

On Mar 22, 2018, at 12:33 PM, Tomasz Stachlewski notifications@github.com wrote:

Hi, You mean WordPress content other than posts, yes? Pages etc.?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/awslabs/amazon-polly-wordpress-plugin/issues/7#issuecomment-375371418, or mute the thread https://github.com/notifications/unsubscribe-auth/AAWpVkiR6XdjonIE42QdTaexFZ4DvzdXks5tg9JIgaJpZM4S3FMA.

Don Schueler don.schueler@gmail.com

tstachlewski commented 6 years ago

It might ;). So in short, so first thing, is that we also support other content type than posts. In instructions (https://wordpress.org/plugins/amazon-polly/) , there is "filter' section, which describe a filter 'amazon_polly_post_types' - which can be used to allow plugin to work with other types of content than standard posts. Regarding possibility of defining only part of content which should be read - there is ""Audio Only""/ ""Words Only" functionalities (also described on that link) - which I think are doing exactly what you are saying. Please let me know if this is the answer to your question, or maybe I'm missing something.

dschueler commented 6 years ago

Its not clear to me where I specify the filter “amazon_polly_post_types” where does it go?

d

On Mar 23, 2018, at 3:28 AM, Tomasz Stachlewski notifications@github.com wrote:

It might ;). So in short, so first thing, is that we also support other content type than posts. In instructions (https://wordpress.org/plugins/amazon-polly/ https://wordpress.org/plugins/amazon-polly/) , there is "filter' section, which describe a filter 'amazon_polly_post_types' - which can be used to allow plugin to work with other types of content than standard posts. Regarding possibility of defining only part of content which should be read - there is ""Audio Only""/ ""Words Only" functionalities (also described on that link) - which I think are doing exactly what you are saying. Please let me know if this is the answer to your question, or maybe I'm missing something.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/awslabs/amazon-polly-wordpress-plugin/issues/7#issuecomment-375566961, or mute the thread https://github.com/notifications/unsubscribe-auth/AAWpVinIoLP9kwCqFzHw483RuQNAVgc_ks5thKQSgaJpZM4S3FMA.

Don Schueler don.schueler@gmail.com

dschueler commented 6 years ago

First…I really appreciate your responsiveness here. It’s appreciated. Second. I wanted to give you feedback on the plugin. I am going to stick with the Wordpress responsivevoice plugin for the following reasons. 1) I can select which content I want read versus having to do the opposite…exclude what I don’t want. It seems more logical to me. 2) Since its a wordpress shortcode, its enabled on all post types and pages etc. if I use the shortcode. There is a positive on the Polly plugin to automatically enable Polly on all existing posts and that would be good for an older blog with a lot of entries. I am just in mid development on my site so not so much of an issue. 3) I do not like it that Polly reads the post title…again the default of read everything unless tagged otherwise may cause this issue and not allow it to be overridden. 4) I don’t ‘hear” much difference between the vocalization on responsivevoice versus Polly so that’s not a big issue. Each of them have their little mistakes.

I hope you all continue to develop and evolve the plugin. That’s what attracts a WP admin to a plugin…good review and active updates.

Thanks again for the quick response.

Don

On Mar 23, 2018, at 3:28 AM, Tomasz Stachlewski notifications@github.com wrote:

It might ;). So in short, so first thing, is that we also support other content type than posts. In instructions (https://wordpress.org/plugins/amazon-polly/ https://wordpress.org/plugins/amazon-polly/) , there is "filter' section, which describe a filter 'amazon_polly_post_types' - which can be used to allow plugin to work with other types of content than standard posts. Regarding possibility of defining only part of content which should be read - there is ""Audio Only""/ ""Words Only" functionalities (also described on that link) - which I think are doing exactly what you are saying. Please let me know if this is the answer to your question, or maybe I'm missing something.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/awslabs/amazon-polly-wordpress-plugin/issues/7#issuecomment-375566961, or mute the thread https://github.com/notifications/unsubscribe-auth/AAWpVinIoLP9kwCqFzHw483RuQNAVgc_ks5thKQSgaJpZM4S3FMA.

Don Schueler don.schueler@gmail.com

tstachlewski commented 6 years ago

Hi!, Thanks for you feedback, we will try to modify a bit plugin in future based on your comments. Regarding filters, this is standard WordPress functionality, we mention it here: https://wordpress.org/support/topic/custom-post-type-200/ https://wordpress.org/support/topic/a-few-suggestions-15/

Cheers, Tomasz

dschueler commented 6 years ago

Thx Tomasz...Yes..that should definitely be in the UI versus code.

On Sat, Mar 24, 2018, 6:16 AM Tomasz Stachlewski notifications@github.com wrote:

Hi!, Thanks for you feedback, we will try to modify a bit plugin in future based on your comments. Regarding filters, this is standard WordPress functionality, we mention it here: https://wordpress.org/support/topic/custom-post-type-200/ https://wordpress.org/support/topic/a-few-suggestions-15/

Cheers, Tomasz

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/awslabs/amazon-polly-wordpress-plugin/issues/7#issuecomment-375865749, or mute the thread https://github.com/notifications/unsubscribe-auth/AAWpVjsv2R18EXca5vA4sVMiOUYIehNtks5thhzigaJpZM4S3FMA .

tstachlewski commented 6 years ago

Yep. A lot of people ask for this. I will add this in next release of the plugin to UI. Thx for the feedback!

michael-newman commented 6 years ago

Tomasz,

I would like to echo the request for Shortcodes; but for a different reason.

We use the Elegant Themes Divi Builder for our WordPress posts, custom post types, and pages--I believe this is a pretty mainstream post/page builder. The Polly Plugin works nicely on the basic WP post; however, it does not work at all with the Divi Builder--many other plugins provide shortcode functionality which, when working with Divi Builder, you just drop the shortcode into the divi builder Module to attain the functionality... Would you consider shortcodes for your plugin?

Alternatively, if you have a more appropriate suggested approach, I would be more than happy to give it a try.

Thank you, Mike

helderconde commented 6 years ago

I completely agree with Tomasz,

Having the shortcode to use with Divi Builder would be great!

Thanks!

Helder Conde