latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

S2member shortcode in get_the_excerpt()

Home Forums Community Forum S2member shortcode in get_the_excerpt()

This topic contains 1 reply, has 2 voices. Last updated by  Eduan 3 years, 11 months ago.

Topic Author Topic
Posted: Friday Feb 1st, 2013 at 2:15 pm #40299

hello,
Is there any possibility to have S2member shortcodes [s2If is_user_logged_in()] active in get_the_excerpt() function or the_excerpt() function?
I’ve added those two lines in my functions.php file but it still does not work

add_filter(‘the_excerpt’, ‘shortcode_unautop’);
add_filter(‘the_excerpt’, ‘do_shortcode’);

Maybe something with echo do_shortcode ?

Thanks a lot for your answers

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Saturday Feb 2nd, 2013 at 12:48 pm #40486
Eduan
Username: Eduan
Moderator

Hello Damien,

If what you want to do is use s2Member conditionals in your code you will need to use the PHP version instead of the shortcode version.

You can find that under Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals.

– Eduan

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.