Tip for shortcode support in TEXT-slides
-
For those of you looking to modify Foyer to your liking, here’s a tip you may find useful. Please note that you should always create a separate Foyer template setup, as explained in the documentation and not directly modify the distributed files.
If you want shortcode support in TEXT-slides, you can edit the file “text.php”. This file is originally located under plugins/foyer/public/templates/slides/.
At the top of the file, but after $slide_text_content = get_post_meta (), add the following:
$slide_text_content = apply_filters( 'the_content', $slide_text_content );
This will also allow other plugins (like ultimate shortcodes, etc) that hook standard WordPress architecture to work properly on the text content.
- The topic ‘Tip for shortcode support in TEXT-slides’ is closed to new replies.