0
votes

I'm making a WordPress theme by myself since I'm working for the first time in Wordpress I've watched some tutorials about it.

I have page.php header and footer and ofc an index. I insert the content from the pages with this: <?php echo get_post_field('post_content', $post->ID); ?> but I tried the get_post in a while loop with same result..

Everything is fine but when I want to use a plugin I can't add to my page... When I insert the shortcode of it it shows only the shortcode string... There are some plugins where I can click a "view" option and it would show a page with my plugin (for example a calendar) but that page is empty...

When I activate an original theme it works instantly... So I'm sure something is missing from my theme something which can load the plugins but I couldn't find solution for it.

Any ideas?

1

1 Answers

1
votes

Did you add the <?php wp_head(); ?> function before the head area of the html document is closing? It imports important scripts and styles from wordpress itself (and probably also from the plugins).

See here: https://developer.wordpress.org/reference/functions/wp_head/

Before closing the body area, the template should also include

<?php wp_footer();?>

See here: https://developer.wordpress.org/reference/functions/wp_footer/