• 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.


    Last updated:

    May 14, 2015

Today’s word is this:







Tide times from tidetimes.org.uk

Tide Times & Heights for Langstone Harbour on
16th June 2024
00:59 Low Tide ( 2.01m )
07:56 High Tide ( 3.88m )
13:16 Low Tide ( 1.88m )
20:27 High Tide ( 4.18m )

Tide times from tidetimes.org.uk

Tide Times & Heights for Northney on
16th June 2024
01:00 Low Tide ( 1.78m )
07:40 High Tide ( 3.49m )
13:15 Low Tide ( 1.65m )
20:21 High Tide ( 3.76m )