WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Widget
[resolved] Custom Post in Page Template (4 posts)

  1. RoyCreative
    Member
    Posted 2 years ago #

    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/

  2. RoyCreative
    Member
    Posted 2 years ago #

    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;
    ?>
  3. Johan van der Wijk
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for sharing your solution to this issue!

  4. jerrry606
    Member
    Posted 2 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic