• H2GD Part 16.17: excerpts for pages

    H2GD Part 16.17: excerpts for pages

    This page is about “excerpts for pages” One of my customers was having some challenges with the [bw_code bw_pages] shortcode where it was pulling in too much information from before the <!--more --> tag. I suggested using a hand written excerpt. But then I realised that the ‘page’ post_type doesn’t include support for Excerpt fields.

    I ummed and aahed about adding it to the oik base plugin before deciding to create a new oik-post-type-support plugin. Although the only thing that it does right now is to add post type support of Excerpt to pages add_post_type_support( 'page', 'excerpt' ); I have plans to extend it to be able to support a range of custom post types. Then there’s other things that can be added.

    I’ve already discovered a few side effects with just this one line of code, so while I’m waiting for something else to finish I thought I’d start writing them down.

    1. Excerpts don’t go away when the plugin is deactivated – so an uninstall routine may be needed
    2. If you use [bw_pages] to list pages within a blog post then you can get more than one More link.

    I’ve yet to perform the problem determination for these problems.

    Meanwhile the plugin is available for FREE download from oik-plugins: oik-post-type-support.

    Update May 2015… nowadays I use the oik-types plugin. It’s more complex but has far more capability.



    Published:

    Last updated:

    May 14, 2015

Categories

Tide times from tidetimes.org.uk

Tide Times & Heights for Langstone Harbour on
4th December 2023
03:48 High Tide ( 4.09m )
08:48 Low Tide ( 2.03m )
15:46 High Tide ( 3.84m )
21:15 Low Tide ( 1.91m )

Tide times from tidetimes.org.uk

Tide Times & Heights for Northney on
4th December 2023
04:09 High Tide ( 3.96m )
09:06 Low Tide ( 1.86m )
16:13 High Tide ( 3.74m )
21:39 Low Tide ( 1.7m )