Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Component in content
#1
So on one page I want some HTML... rather than putting it into the content using the Source view and letting it put <p> tags around everything, I figured I'd simply made a Theme Component then display that in the page.

However, it doesn't work.
When I put
Code:
<?php get_component('allsolutionspage'); ?>
then save it turns it into <
Code:
!--?php get_component('allsolutionspage'); ?-->
which obviously causes issues...

How to fix this? Thanks!
Reply
#2
you have to use the dynpages plugin

and {% componentname %}
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#3
Awesome thank you it's working great! You're a life saver Big Grin
Reply




Users browsing this thread: 1 Guest(s)