Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do i add something (from a plugin) to the template of a page?
#1
Hello there.
I'm installing the "Events" plugin, and i know how to add it to the sidebar but i couldn't figure out how to add it to an individual page, the official topic says:

Show events on page by editing the template and adding the following:
<?php echo events_list() ?>

But how?

Thank you.
Reply
#2
Electabuzz,

I think you've got a few options here to achieve your goal:
  • Create an additional template file for the used theme (copy template.php and rename it), place the events list call into the new template file (above, below <?php get_page_content(); ?> or replace it) and assign it to a given page (in page options)
  • Install the Exec-PHP plugin so you can embed the events list call directly into a page via the editor
  • Use the DynPages plugin to embed a placeholder in the page editor which calls upon a component that contains the events list call (may sound more complicated than it is, but it's late here...)

Hope this helps.
Reply
#3
polyfragmented Wrote:Electabuzz,
...
Hope this helps.

Thank you for your reply. I appreciate your attention.
Reply




Users browsing this thread: 2 Guest(s)