Support » Plugin: Post Type Archive Descriptions » Not working on Posts?

  • Resolved Topher

    (@topher1kenobe)


    This works great on all post types except Posts for me. Is there a trick?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author mrwweb

    (@mrwweb)

    Glad you like the plugin, @topher1kenobe!

    The plugin unfortunately does not support descriptions for Posts or Pages.

    What I recommend (and do myself) is enable the editor on the blog page (aka the Page for Posts page) and then output the contents of that page on the blog page (home.php or similar in the theme) with something like this:

    <?php echo '<div class="archive-description blog-description">' . apply_filters( 'the_content', get_the_content( null, false, (int) get_option( 'page_for_posts' ) ) ) . '</div>';

    Hope that helps!

    Thread Starter Topher

    (@topher1kenobe)

    This worked perfectly, and I love it, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.