WordPress.org

Support

Support » Plugins and Hacks » Custom Post Widget » [Resolved] [Plugin: Custom Post Widget] Custom Post in Page Template

[Resolved] [Plugin: Custom Post Widget] Custom Post in Page Template

  • This plugin works great for my client by organizing all the content outside of the page/post content into one area in the admin. Now if only I could create a custom post with the footer copyright info so that she could edit that as well. Is that possible? Can I pull a custom post generated with this plugin into my page template?

    http://wordpress.org/extend/plugins/custom-post-widget/

Viewing 3 replies - 1 through 3 (of 3 total)
  • I actually solved this. First I created a content block called “Copyright Info.”

    Then, in my Footer.php, I put this code, whereas 399 is the page ID for the content block:

    <?php
    $page_id = 399;
    $page_data = get_page( $page_id );
    $content = $page_data->post_content;
    echo $page_data->post_content;
    ?>
    Plugin Author Johan van der Wijk

    @vanderwijk

    Thanks for sharing your solution to this issue!

    Hey this is exactly what I was looking for: first I found the Content Blocks plug-in, which is great, and now this additional tip. Thanks guys!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: Custom Post Widget] Custom Post in Page Template’ is closed to new replies.
Skip to toolbar