WordPress.org

Making WordPress.org

#1693 closed enhancement (fixed)

Template tags for use in themes

Reported by: keesiemeijer Owned by: coffee2code
Milestone: Priority: normal
Component: Handbooks Keywords: has-patch
Cc:

Description

Working on the wporg-developer theme we may have to add functions like this for use with the handbook plugin.

  • function to get all handbook post types
  • function to check if the current page is a handbook page
  • function to get the current handbook page post type.
  • function to check if a post type is a handbook post type

I imagine more themes that use the handbook could also use a standard way of getting handbook post type data.

Attachments (1)

1693.patch (3.0 KB) - added by keesiemeijer 20 months ago.
First pass at template tags

Download all attachments as: .zip

Change History (3)

@keesiemeijer
20 months ago

First pass at template tags

#1 @keesiemeijer
20 months ago

  • Keywords has-patch added

#2 @coffee2code
19 months ago

  • Owner set to coffee2code
  • Resolution set to fixed
  • Status changed from new to closed

In 3234:

Handbook plugin: Add four template tags relating to handbook pages.

Specifically: wporg_get_handbook_post_types(), wporg_is_handbook(), wporg_is_handbook_post_type(), and wporg_get_current_handbook().

Props keesiemeijer.
See #515, #1671.
Fixes #1693.

Note: See TracTickets for help on using tickets.