WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Multiple content blocks] Blocks not showing up on Default Template (page.php)

[Resolved] [Plugin: Multiple content blocks] Blocks not showing up on Default Template (page.php)

Viewing 1 replies (of 1 total)
  • JboyJW
    Member

    @jboyjw

    Another glitch, perhaps due to WP version. The add_multiplecontent_box() function attempts to get the page template file name using $post->template. But for the Default Page, for some reason that returns page-sidebox.php instead of page.php… So I tried using the get_page_template() function instead and that seems to return the correct template file name for the Default Template and my custom templates.

    On line 39, replace
    $fileToRead = get_template_directory_uri().'/'.$post->page_template;
    with
    $fileToRead = get_page_template();

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Plugin: Multiple content blocks] Blocks not showing up on Default Template (page.php)’ is closed to new replies.