• I do have the following Problem:

    I am just writing my own wordpress template which is called:

    Build Startpage Page Template
    (template-build-startpage.php)

    This template contains the code:

    <?php
        /*
        Template Name: Build Startpage
        */
    
        get_header();
    
        $pdata = get_page(291);
        echo do_shortcode($pdata->post_content);
    ?>

    So the only thing that code is doing is embedding another pages content. I did create a PAGE called “Home” in WordPress which is using this template. The PAGE “Home” is also the frontpage of my wordpress site.

    The site is shown works perfectly fine except for the shortcode. The shortcode is not executed. Can someone help me our here?

    Thank you very much in advance!

  • The topic ‘Shortcodes in WordPress Frontpage in PHP’ is closed to new replies.